403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/breezy/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/breezy/__pycache__/atomicfile.cpython-313.pyc
�

p��g	���SSKrSSKrSSKJrJr \R
"5rSq"SS\R5r	"SS5r
g)�N)�errors�osutilsc��\rSrSrSrSrSrg)�AtomicFileAlreadyClosed�zF"%(function)s" called on an AtomicFile after it was closed: "%(path)s"c�L�[RRXSS9 X lg)N)�path�extra)r�	PathError�__init__�function)�selfr	r
s   �3/usr/lib/python3/dist-packages/breezy/atomicfile.pyr� AtomicFileAlreadyClosed.__init__s �����!�!�$��!�>� �
�)r
N)�__name__�
__module__�__qualname__�__firstlineno__�_fmtr�__static_attributes__�rrrrs��S�D�!rrc�Z�\rSrSrSr/SQrSSjrSrSrSr	S	r
S
rSrSr
S
rSrg)�
AtomicFile�#z�A file that does an atomic-rename to move into place.

This also causes hardlinks to break when it's written out.

Open this as for a regular file, then use commit() to move into
place or abort() to cancel.
)�_fd�realfilename�tmpfilenameNc	���SUl[c[R"5qUS[S[S[R
"S5S3UlXl[R[R-[R-[R-nUS:XaU[R-nO US:wa[SRU55eUbUnOSn[R "URXE5UlUbg[R""UR5n[$R&"UR(5U:wa"[R*"URU5 ggg)N�.�
z.tmp�wb�wtzinvalid AtomicFile mode {!r}i�)r�	_hostnamer�
get_host_name�_pid�
rand_charsrr�os�O_EXCL�O_CREAT�O_WRONLY�O_NOINHERIT�O_BINARY�
ValueError�format�open�fstat�stat�S_IMODE�st_mode�chmod_if_possible)r�filename�mode�new_mode�flags�
local_mode�sts       rr�AtomicFile.__init__.s'��������-�-�/�I�&�Z�q���a�	�{�!�G�<N�<N�r�<R�;S�SW�X���$���	�	�B�J�J�&����4�w�7J�7J�J���4�<��W�%�%�%�E�
�T�\��;�B�B�4�H�I�I���!�J��J��7�7�4�+�+�U�?��������$�(�(�#�B��|�|�B�J�J�'�8�3��)�)�$�*:�*:�H�E�4�	 rc�b�SRURRUR5$)Nz{}({!r}))r/�	__class__rr�rs r�__repr__�AtomicFile.__repr__Ps%��� � ����!8�!8�$�:K�:K�L�Lrc�F�[R"URU5 g)z/Write some data to the file. Like file.write().N)r(�writer)r�datas  rrC�AtomicFile.writeSs��
������4� rc��URc[URUS9eURnSUl[R"U5 g)z=Close the local temp file in preparation for commit or abort.N)r	r
)rrrr(�close)r�	func_name�fds   r�_close_tmpfile�AtomicFile._close_tmpfileWs:���8�8��)�t�/@�/@�9�U�U�
�X�X�����
����rc�|�URS5 [R"URUR5 g)z&Close the file and move to final name.�commitN)rJr�renamerrr?s rrM�AtomicFile.commit_s*�����H�%����t�'�'��):�):�;rc�f�URS5 [R"UR5 g)z2Discard temporary file without committing changes.�abortN)rJr(�removerr?s rrQ�AtomicFile.abortds"�����G�$�
�	�	�$�"�"�#rc�@�URbUR5 gg)z*Discard the file unless already committed.N)rrQr?s rrG�AtomicFile.closeis���8�8���J�J�L� rc��U$)Nrr?s r�	__enter__�AtomicFile.__enter__ns���rc�T�U(aUR5 gUR5 g)NF)rQrM)r�exc_type�exc_val�exc_tbs    r�__exit__�AtomicFile.__exit__qs����J�J�L�����
r)r"N)rrrr�__doc__�	__slots__rr@rCrJrMrQrGrWr]rrrrrr#s>���7�I� F�DM�!��<�
$�
�
�rr)r(r2�breezyrr�getpidr&r$rrrrrr�<module>rcs@��"
��"�
�y�y�{���	�!�f�.�.�!�R�Rr

Youez - 2016 - github.com/yon3zu
LinuXploit