403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/__pycache__/bz2.cpython-315.opt-1.pyc
R
>lqj*0c��Qs,Q
NsQs]QHGs]QHGs]PH s]PH$s	]QH(GsGs]s
]sQQ\O2sQQksQQksQ	sP!)
z�Interface to the libbzip2 compression library.

This module provides a file interface, classes for incremental
(de)compression, and functions for one-shot (de)compression.
�BZ2Filez%Nadeem Vawda <nadeem.vawda@gmail.com>)�open)�_streams)�
BZ2Compressor�BZ2Decompressorc��`�\sQs]snQsQQ]	-QkksQs\Q2s\Q2s	\Q2s
QsQ	sQ
s
QsQQksQQ
ksQQksQsQQksQQksQsQs\O01QksQsQsUsP!)ra,A file object providing transparent bzip2 (de)compression.

A BZ2File can act as a wrapper for an existing file object, or refer
directly to a named file on disk.

Note that BZ2File provides a *binary* file interface - data read is
returned as bytes, and data to be written should be given as bytes.
�
compresslevelc�:�PUmP
UmPUm]St96:c]	6:fL[Q2gUQ7c
Qo[oLoUQ7cQo[
o[
U2UmLOUQ
7cQo[
o[
U2UmL/UQ7cQo[
o[
U2UmL[QU802g[U[[[O12%c[V2UmP	UmV@mL<[UQ2%f[UQ2%cVmV@mL[Q	2gUO[6XcI[ O"UO[$[&Q
5o[(O*U2UmP!]UmP!)a�Open a bzip2-compressed file.

If filename is a str, bytes, or PathLike object, it gives the
name of the file to be opened. Otherwise, it should be a file
object, which will be used to read or write the compressed data.

mode can be 'r' for reading (default), 'w' for (over)writing,
'x' for creating exclusively, or 'a' for appending. These can
equivalently be given as 'rb', 'wb', 'xb', and 'ab'.

If mode is 'w', 'x' or 'a', compresslevel can be a number between 1
and 9 specifying the level of compression: 1 produces the least
compression, and 9 (default) produces the most compression.

If mode is 'r', the input file may be the concatenation of
multiple compressed streams.
z%compresslevel must be between 1 and 9�rb�wb�xb�ab�Invalid mode: �read�writez6filename must be a str, bytes, file or PathLike object)�trailing_error)��rr	)�wr
)�xr)�ar)�_fp�_closefp�_mode�
ValueError�
_MODE_READ�_MODE_WRITEr�_compressor�
isinstance�str�bytes�os�PathLike�
_builtin_open�hasattr�	TypeErrorr�DecompressReaderr�OSError�io�BufferedReader�_buffer�_pos)�self�filename�moder�	mode_code�raws&&&$  �C:\Python315\\Lib\bz2.py�__init__�BZ2File.__init__%sN��$�����
���
��]�'�a�'��D�E�E��?�"��D�"�I�
�[�
 ��D�#�I�,�]�;�D��
�[�
 ��D�#�I�,�]�;�D��
�[�
 ��D�#�I�,�]�;�D���4�9�:�:��h��e�R�[�[� 9�:�:�$�X�4�D�H� �D�M�"�J�
�X�v�
&�
&�'�(�G�*D�*D��H�"�J��T�U�U��:�:��#��+�+�D�H�H���9�C��,�,�S�1�D�L��D�I�c��UO%cP!UO[6XcUOO	2LOUO[
6Xc;UOOUOO22PUmUO%cUOO	2PUmP
Um
PUmP!PSmP
Sm
PSmh9hSO%cSOO	2PSmP
Sm
PSmhPSmP
Sm
PSmh9h9h)z�Flush and close the file.

May be called more than once without error. Once the file is
closed, any other operation on it will raise a ValueError.
)�closedrrr)�closerrrr�flushr�r+s&r0r6�
BZ2File.closeas����;�;�;��
	$��z�z�Z�'����"�"�$����{�*������t�/�/�5�5�7�8�#'�� �
$��=�=�=��H�H�N�N�$���� %��
�#���� ��� %��
�#����

$��=�=�=��H�H�N�N�$���� %��
�#���� ��� %��
�#���sF�C4�/C4�:C4�C�)C�C1�4E�6D8�D8�"E�8E�Ec� �UOPI!)zTrue if this file is closed.)rr8s&r0r5�BZ2File.closedxs���x�x�4��r3c�P�UO2UOO!)N)�_check_not_closedr�namer8s&r0r>�BZ2File.name}s����� ��x�x�}�}�r3c�6�UO[6XcQ!Q!)r
r	)rrr8s&r0r-�BZ2File.mode�s���z�z�[�0�t�:�d�:r3c�X�UO2UOO2!)z3Return the file descriptor for the underlying file.)r=r�filenor8s&r0rC�BZ2File.fileno�s����� ��x�x��� � r3c�h�UO29%cUOO2!)z)Return whether the file supports seeking.)�readabler)�seekabler8s&r0rG�BZ2File.seekable�s#���}�}��:�:�4�<�<�#8�#8�#:�:r3c�J�UO2UO[6H!)z/Return whether the file was opened for reading.)r=rrr8s&r0rF�BZ2File.readable�s����� ��z�z�Z�'�'r3c�J�UO2UO[6H!)z/Return whether the file was opened for writing.)r=rrr8s&r0�writable�BZ2File.writable�s����� ��z�z�[�(�(r3c�Z�UO2UOOU2!)z�Return buffered data without advancing the file position.

Always returns at least one byte of data, unless at EOF.
The exact number of bytes returned is unspecified.
)�_check_can_readr)�peek)r+�ns&&r0rP�BZ2File.peek�s'��	
�����|�|� � ��#�#r3c�Z�UO2UOOU2!)z�Read up to size uncompressed bytes from the file.

If size is negative or omitted, read until EOF is reached.
Returns b'' if the file is already at EOF.
)rOr)r�r+�sizes&&r0r�BZ2File.read�s%��	
�����|�|� � ��&�&r3c��UO2U]6c[OoUOO	U2!)z�Read up to size uncompressed bytes, while trying to avoid
making multiple reads from the underlying stream. Reads up to a
buffer's worth of data if size is negative.

Returns b'' if the file is at EOF.
)rOr'�DEFAULT_BUFFER_SIZEr)�read1rTs&&r0rY�
BZ2File.read1�s7��	
�����!�8��)�)�D��|�|�!�!�$�'�'r3c�Z�UO2UOOU2!)zBRead bytes into b.

Returns the number of bytes read (0 for EOF).
)rOr)�readinto)r+�bs&&r0r\�BZ2File.readinto�s%��
	
�����|�|�$�$�Q�'�'r3c���[U[2%f.[UQ2%f[Q2gUO	2oUO2UOOU2!)z�Read a line of uncompressed bytes from the file.

The terminating newline (if present) is retained. If size is
non-negative, no more than size bytes will be read (in which
case the line may be incomplete). Returns b'' if already at EOF.
�	__index__�Integer argument expected)r�intr#r$r`rOr)�readlinerTs&&r0rc�BZ2File.readline�sW���$��$�$��4��-�-�� ;�<�<��>�>�#�D������|�|�$�$�T�*�*r3c���[U[2%f.[UQ2%f[Q2gUO	2oUO2UOOU2!)z�Read a list of lines of uncompressed bytes from the file.

size can be specified to control the number of lines read: no
further lines will be read once the total size of the lines read
so far equals or exceeds size.
r`ra)rrbr#r$r`rOr)�	readlinesrTs&&r0rf�BZ2File.readlines�sW���$��$�$��4��-�-�� ;�<�<��>�>�#�D������|�|�%�%�d�+�+r3c�D�UO2[U[[12%c
[	U2oL[U2oUOoUOOU2oUOOU2U9OU*
tmU!)z�Write a byte string to the file.

Returns the number of uncompressed bytes written, which is
always the length of data in bytes. Note that due to buffering,
the file on disk may not reflect the data written until close()
is called.
)�_check_can_writerr�	bytearray�len�
memoryview�nbytesr�compressrrr*)r+�data�length�
compresseds&&  r0r�
BZ2File.write�sy��	
�����d�U�I�.�/�/���Y�F��d�#�D��[�[�F��%�%�.�.�t�4�
������z�"��	�	�V��	��
r3c�B�[OOV2!)z�Write a sequence of byte strings to the file.

Returns the number of uncompressed bytes written.
seq can be any iterable yielding byte strings.

Line separators are not added between the written byte strings.
)r�
BaseStream�
writelines)r+�seqs&&r0ru�BZ2File.writelines�s���"�"�-�-�d�8�8r3c�Z�UO2UOOV2!)a�Change the file position.

The new position is specified by offset, relative to the
position indicated by whence. Values for whence are:

    0: start of stream (default); offset must not be negative
    1: current stream position
    2: end of stream; offset must not be positive

Returns the new file position.

Note that seeking is emulated, so depending on the parameters,
this operation may be extremely slow.
)�_check_can_seekr)�seek)r+�offset�whences&&&r0rz�BZ2File.seek�s%��	
�����|�|� � ��0�0r3c��UO2UO[6XcUOO	2!UO
!)z!Return the current file position.)r=rrr)�tellr*r8s&r0r�BZ2File.tells7����� ��:�:��#��<�<�$�$�&�&��y�y�r3)r)rrrrr*)r)�)���)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r1r6�propertyr5r>r-rCrGrFrLrPrrYr\rcrfrrur'�SEEK_SETrzr�__static_attributes__�__classdictcell__)�
__classdict__s@r0rrs������:�A�:�x$�.� �� ������;��;�!�
;�(�
)�

$�'�
(�(�+�,��*9�#%�+�+�1�$�r3c�D�QU7cQU7c[QU802gL-Ud[Q2gUd[Q2gUd[Q2gUOQP2o[VUQ5oQU7c.[OU2o[O
VsVE2!U!)a�Open a bzip2-compressed file in binary or text mode.

The filename argument can be an actual filename (a str, bytes, or
PathLike object), or an existing file object to read from or write
to.

The mode argument can be "r", "rb", "w", "wb", "x", "xb", "a" or
"ab" for binary mode, or "rt", "wt", "xt" or "at" for text mode.
The default mode is "rb", and the default compresslevel is 9.

For binary mode, this function is equivalent to the BZ2File
constructor: BZ2File(filename, mode, compresslevel). In this case,
the encoding, errors and newline arguments must not be provided.

For text mode, a BZ2File object is created, and wrapped in an
io.TextIOWrapper instance with the specified encoding, error
handling behavior, and line ending(s).

�tr]r
z0Argument 'encoding' not supported in binary modez.Argument 'errors' not supported in binary modez/Argument 'newline' not supported in binary mode)r)r�replacerr'�
text_encoding�
TextIOWrapper)r,r-r�encoding�errors�newline�bz_mode�binary_files&&&&&&  r0rrs���*�d�{��$�;��4�9�:�:�����O�P�P����M�N�N����N�O�O��l�l�3��#�G��(�=�I�K�
�d�{��#�#�H�-������v�G�G��r3c�f�[U2oUOU2UO2*!)z�Compress a block of data.

compresslevel, if given, must be a number between 1 and 9.

For incremental compression, use a BZ2Compressor object instead.
)rrnr7)ror�comps&& r0rnrnAs(����'�D��=�=�������-�-r3c� �,oU%cY[2oUOU2oUOU2UO%f[Q2gUOoJ`QOU2![cS%cJ'gh9h)zbDecompress a block of data.

For incremental decompression, use a BZ2Decompressor object instead.
zACompressed data ended before the end-of-stream marker was reachedr3)r�
decompressr&�append�eofr�unused_data�join)ro�results�decomp�ress&   r0r�r�Ls���
�G�
� �"��	��#�#�D�)�C�	���s���z�z�z��@�A�
A��!�!���8�8�G�����	����		�s�A5�5	B
�?B
�B
)rrrrrnr�)r	�	NNN)r�)r��__all__�
__author__�builtinsrr"�compression._commonrr'r �_bz2rrrrrtrrnr��r3r0�<module>r�sX���-��5�
�*�(�	�	�/��
���z�h�!�!�z�z'�T.�r3

Youez - 2016 - github.com/yon3zu
LinuXploit