HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/trac/util/__pycache__/compat.cpython-310.pyc
o

�k�`O�@s�ddlZddlZddlZddlZzddlmZWn!ey9zddlmZWney2dZYnwdd�ZYnwdd�Zej	dkZ
d	d
�ZdS)�N)�crypt)�	des_cryptcCs*ttd�rtj|d��|�Stj||d�S)N�hash)�salt)�hasattrr�usingr�encrypt)�secretr�r
�2/usr/lib/python3/dist-packages/trac/util/compat.pyrs
rcCs
|�|�S)N)�
rpartition)�s�sepr
r
rr's
r�ntc
Cs�ddlm}z)t�|�j}||�|t�|�jkr-t�d�||�|t�|�jksWdSWdStyJ}z|jtj	kr>n�WYd}~dSd}~ww)aIThis function is typically called before a file save operation,
    waiting if necessary for the file modification time to change. The
    purpose is to avoid successive file updates going undetected by the
    caching mechanism that depends on a change in the file modification
    time to know when the file should be reparsed.r)�
touch_fileg����MbP?N)
�	trac.utilr�os�stat�st_mtime�time�sleep�OSError�errno�ENOENT)�filenamer�mtime�er
r
r�wait_for_file_mtime_change/s
����r)rr�
subprocessrr�ImportError�passlib.hashrr�name�	close_fdsrr
r
r
r�<module>s$���