Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.12.154.150
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : gzip.cpython-32.pyc
l
��bc@s3dZddlZddlZddlZddlZddlZddlZddlZddddgZddd	d
df\Z	Z
ZZZ
ddf\ZZd�Zd
�Zd�Zd�Zddd�ZGd�d�ZGd�dej�Zdd�Zd�Zd�Zedkr/e�ndS(u�Functions that read and write gzipped files.

The user of the file doesn't have to worry about the compression,
but random access is not allowed.iNuGzipFileuopenucompressu
decompressiiiiicCs|dkr|d7}n|S(u�Return i as an unsigned integer, assuming it fits in 32 bits.
    If it's >= 2GB when viewed as a 32-bit unsigned int, return a long.
    iii I((ui((u+/usr/local/python-3.2/lib/python3.2/gzip.pyuU32s
cCs|d@S(u3Return the low-order 32 bits, as a non-negative intI����((ui((u+/usr/local/python-3.2/lib/python3.2/gzip.pyuLOWU32scCs|jtjd|��dS(Nu<L(uwriteustructupack(uoutputuvalue((u+/usr/local/python-3.2/lib/python3.2/gzip.pyuwrite32uscCstjd|jd��dS(Nu<Iii(ustructuunpackuread(uinput((u+/usr/local/python-3.2/lib/python3.2/gzip.pyuread32$surbi	cCst|||�S(u�Shorthand for GzipFile(filename, mode, compresslevel).

    The filename argument is required; mode defaults to 'rb'
    and compresslevel defaults to 9.

    (uGzipFile(ufilenameumodeu
compresslevel((u+/usr/local/python-3.2/lib/python3.2/gzip.pyuopen'scBsV|EeZdZdd�Zd�Zdd
d�Zd�Zdd�Zd�Z	d	S(u�Minimal read-only file object that prepends a string to the contents
    of an actual file. Shouldn't be used outside of gzip.py, as it lacks
    essential functionality.scCs.||_t|�|_||_d|_dS(Ni(u_bufferulenu_lengthufileu_read(uselfufuprepend((u+/usr/local/python-3.2/lib/python3.2/gzip.pyu__init__5s		cCs�|jdkr|jj|�S|j||jkra|j}|j|7_|j||j�S|j}d|_|j|d�|jj||j|�SdS(N(u_readuNoneufileureadu_lengthu_buffer(uselfusizeuread((u+/usr/local/python-3.2/lib/python3.2/gzip.pyuread;s			cCs�|jdkr||_nN|rOt|�|jkrO|jt|�8_dS|jtd�||_t|j�|_d|_dS(Ni(u_readuNoneu_bufferulenureadu_length(uselfuprependureadprevious((u+/usr/local/python-3.2/lib/python3.2/gzip.pyuprependHscCs'|jdkrdS|j|jd�S(Ns(u_readuNoneu_buffer(uself((u+/usr/local/python-3.2/lib/python3.2/gzip.pyuunusedSsicCs�|dkrk|jdk	rkd||jko<|jknrT|j|7_dS||j|j7}nd|_d|_|jj||�S(Nii(u_readuNoneu_lengthu_bufferufileuseek(uselfuoffsetuwhence((u+/usr/local/python-3.2/lib/python3.2/gzip.pyuseekXs&		cCst|j|�S(N(ugetattrufile(uselfuname((u+/usr/local/python-3.2/lib/python3.2/gzip.pyu__getattr__dsNF(
u__name__u
__module__u__doc__u__init__ureaduFalseuprependuunuseduseeku__getattr__(u
__locals__((u+/usr/local/python-3.2/lib/python3.2/gzip.pyu_PaddedFile0s
	
	u_PaddedFilecBs.|EeZdZdZd!Zdddddd�Zed��Zd�Z	d�Z
d�Zd	�Zd
�Z
d�Zd�Zd"d�Zd�Zd�Zdd�Zd�Zd�Zed��Zd�Zejd�Zd�Zd�Zd�Zd�Zd�Zdd�Z d#d�Z!dS($u)The GzipFile class simulates most of the methods of a file object with
    the exception of the readinto() and truncate() methods.

    This class only supports opening files in binary mode. If you need to open a
    compressed file in text mode, wrap your GzipFile with an io.TextIOWrapper.

    i
ii	cCs|r5d|ksd|kr5td|d��n|rTd|krT|d7}n|dkr�tj||prd�}|_n|dkr�t|dd�}t|ttf�s�d}q�n|dkr�t	|d	�r�|j
}q�d}n|d
d�dkrUt|_
d|_
d
|_d
|_d
|_||_d|_t|�}n�|d
d�dks�|d
d�dkr�t|_
|j|�tj|tjtjtjd
�|_ntd|d��||_d
|_||_|j
tkr
|j�ndS(uwConstructor for the GzipFile class.

        At least one of fileobj and filename must be given a
        non-trivial value.

        The new class instance is based on fileobj, which can be a regular
        file, a StringIO object, or any other object which simulates a file.
        It defaults to None, in which case filename is opened to provide
        a file object.

        When fileobj is not None, the filename argument is only used to be
        included in the gzip file header, which may includes the original
        filename of the uncompressed file.  It defaults to the filename of
        fileobj, if discernible; otherwise, it defaults to the empty string,
        and in this case the original filename is not included in the header.

        The mode argument can be any of 'r', 'rb', 'a', 'ab', 'w', or 'wb',
        depending on whether the file will be read or written.  The default
        is the mode of fileobj if discernible; otherwise, the default is 'rb'.
        A mode of 'r' is equivalent to one of 'rb', and similarly for 'w' and
        'wb', and 'a' and 'ab'.

        The compresslevel argument is an integer from 0 to 9 controlling the
        level of compression; 1 is fastest and produces the least compression,
        and 9 is slowest and produces the most compression. 0 is no compression
        at all. The default is 9.

        The mtime argument is an optional numeric timestamp to be written
        to the stream when compressing.  All gzip compressed streams
        are required to contain a timestamp.  If omitted or None, the
        current time is used.  This module ignores the timestamp when
        decompressing; however, some programs, such as gunzip, make use
        of it.  The format of the timestamp is the same as that of the
        return value of time.time() and of the st_mtime member of the
        object returned by os.stat().

        utuUuMode u not supporteduburbunameuumodeiiursiduwuaNT( uIOErroruNoneubuiltinsuopenu	myfileobjugetattru
isinstanceustrubytesuhasattrumodeuREADuTrueu_new_memberuextrabufu	extrasizeu
extrastartunameumin_readsizeu_PaddedFileuWRITEu_init_writeuzlibucompressobjuDEFLATEDu	MAX_WBITSu
DEF_MEM_LEVELucompressufileobjuoffsetumtimeu_write_gzip_header(uselfufilenameumodeu
compresslevelufileobjumtime((u+/usr/local/python-3.2/lib/python3.2/gzip.pyu__init__tsJ(
"								,	
				cCsYddl}|jdtd�|jtkrR|jdd�dkrR|jdS|jS(Niuuse the name attributeiiu.gzi����(uwarningsuwarnuDeprecationWarningumodeuWRITEuname(uselfuwarnings((u+/usr/local/python-3.2/lib/python3.2/gzip.pyufilename�s
(cCsZ|j}t|t�r$|j}nt|�}d|dd�dtt|��dS(Nu<gzip iu u>i����(ufileobju
isinstanceu_PaddedFileufileurepruhexuid(uselfufileobjus((u+/usr/local/python-3.2/lib/python3.2/gzip.pyu__repr__�s
	cCs|jrtd��ndS(uLRaises a ValueError if the underlying file object has been closed.

        uI/O operation on closed file.N(uclosedu
ValueError(uself((u+/usr/local/python-3.2/lib/python3.2/gzip.pyu
_check_closed�s	cCs>||_tjd�d@|_d|_g|_d|_dS(NsI����i(unameuzlibucrc32ucrcusizeuwritebufubufsize(uselfufilename((u+/usr/local/python-3.2/lib/python3.2/gzip.pyu_init_write�s
			cCsF|jjd�|jjd�y\tjj|j�}t|t�sY|jd�}n|j	d�r{|dd�}nWnt
k
r�d}YnXd}|r�t}n|jjt|�jd��|j
}|dkr�tj�}nt|jt|��|jjd�|jjd	�|rB|jj|d
�ndS(Ns�sulatin-1s.gzisiss�si����(ufileobjuwriteuosupathubasenameunameu
isinstanceubytesuencodeuendswithuUnicodeEncodeErroruFNAMEuchrumtimeuNoneutimeuwrite32uuint(uselfufnameuflagsumtime((u+/usr/local/python-3.2/lib/python3.2/gzip.pyu_write_gzip_header�s,
		cCs#tjd�d@|_d|_dS(NsI����i(uzlibucrc32ucrcusize(uself((u+/usr/local/python-3.2/lib/python3.2/gzip.pyu
_init_readscCs�|jjd�}|dkr-td��n|dkrHtd��nt|jjd��}|dkr{td��nt|jjd��}t|j�|_|jjd�|t@r
t|jjd��}|d	t|jjd��}|jj|�n|t@rFx/|jjd�}|s<|d
krPqqn|t	@r�x/|jjd�}|sx|d
krSPqSqSn|t
@r�|jjd�n|jj�}|r�|jj|�}|j
|�ndS(NisuReached EOFs�uNot a gzipped fileiiuUnknown compression methodis(ufileobjureaduEOFErroruIOErroruorduread32umtimeuFEXTRAuFNAMEuFCOMMENTuFHCRCuunusedu
decompressu_add_read_data(uselfumagicumethoduflaguxlenusuunusedu
uncompress((u+/usr/local/python-3.2/lib/python3.2/gzip.pyu_read_gzip_headers>
 




cCs�|j�|jtkr:ddl}t|jd��n|jdkrXtd��nt	|t
�rv|j�}nt|�dkr�|j
t|�|_
tj||j�d@|_|jj|jj|��|jt|�7_nt|�S(Niu$write() on read-only GzipFile objectu!write() on closed GzipFile objectI����(u
_check_closedumodeuWRITEuerrnouIOErroruEBADFufileobjuNoneu
ValueErroru
isinstanceu
memoryviewutobytesulenusizeuzlibucrc32ucrcuwriteucompressuoffset(uselfudatauerrno((u+/usr/local/python-3.2/lib/python3.2/gzip.pyuwrite/s
ic
Css|j�|jtkr:ddl}t|jd��n|jdkr\|jdkr\dSd}|dkr�y-x&|j	|�t
|j|d�}qtWq)tk
r�|j}Yq)Xnmy=x6||jkr�|j	|�t
|j|d�}q�WWn-tk
r(||jkr$|j}nYnX|j
|j}|j|||�}|j||_|j
|7_
|S(Niu$read() on write-only GzipFile objectsii(u
_check_closedumodeuREADuerrnouIOErroruEBADFu	extrasizeufileobjuNoneu_readuminumax_read_chunkuEOFErroruoffsetu
extrastartuextrabuf(uselfusizeuerrnoureadsizeuoffsetuchunk((u+/usr/local/python-3.2/lib/python3.2/gzip.pyureadDs4




cCs�|jtkr0ddl}t|jd��n|dkrEd}n|jdkr�|jdkrgdSy0x)|jdkr�|jt	|d��qmWWq�t
k
r�Yq�Xn|j|j}|j}|t
|j�|ks�t�|j|||�S(Niu$peek() on write-only GzipFile objectidsi(umodeuREADuerrnouIOErroruEBADFu	extrasizeufileobjuNoneu_readumaxuEOFErroruoffsetu
extrastartulenuextrabufuAssertionError(uselfunuerrnouoffsetu	remaining((u+/usr/local/python-3.2/lib/python3.2/gzip.pyupeekes"	
	cCs/t|�|j|_|jt|�8_dS(N(ulenu	extrasizeuoffset(uselfubuf((u+/usr/local/python-3.2/lib/python3.2/gzip.pyu_unread}scCs-|jdkrtd��n|jr]|j�|j�tjtj�|_	d|_n|jj|�}|dkr�|j	j�}|jj
|j	jd�|j�|j|�td��n|j	j	|�}|j|�|j	jdkr)|jj
|j	jd�|j�d|_ndS(NuReached EOFsFT(ufileobjuNoneuEOFErroru_new_memberu
_init_readu_read_gzip_headeruzlibu
decompressobju	MAX_WBITSu
decompressuFalseureaduflushuprependuunused_datauTrueu	_read_eofu_add_read_data(uselfusizeubufu
uncompress((u+/usr/local/python-3.2/lib/python3.2/gzip.pyu_read�s(	





cCs�tj||j�d@|_|j|j}|j|d�||_|jt|�|_|j|_|jt|�|_dS(NI����(	uzlibucrc32ucrcuoffsetu
extrastartuextrabufu	extrasizeulenusize(uselfudatauoffset((u+/usr/local/python-3.2/lib/python3.2/gzip.pyu_add_read_data�scCs�t|j�}t|j�}||jkrUtdt|�t|j�f��n"||jd@krwtd��nd}x"|dkr�|jjd�}q�W|r�|jj|d�ndS(NuCRC check failed %s != %sI����u!Incorrect length of data producedsiT(	uread32ufileobjucrcuIOErroruhexusizeureaduprependuTrue(uselfucrc32uisizeuc((u+/usr/local/python-3.2/lib/python3.2/gzip.pyu	_read_eof�scCs
|jdkS(N(ufileobjuNone(uself((u+/usr/local/python-3.2/lib/python3.2/gzip.pyuclosed�scCs�|jdkrdS|jtkrq|jj|jj��t|j|j�t|j|j	d@�d|_n|jt
kr�d|_n|jr�|jj�d|_ndS(NI����(
ufileobjuNoneumodeuWRITEuwriteucompressuflushuwrite32uucrcusizeuREADu	myfileobjuclose(uself((u+/usr/local/python-3.2/lib/python3.2/gzip.pyuclose�s	
cCsI|j�|jtkrE|jj|jj|��|jj�ndS(N(u
_check_closedumodeuWRITEufileobjuwriteucompressuflush(uselfu	zlib_mode((u+/usr/local/python-3.2/lib/python3.2/gzip.pyuflush�s
cCs
|jj�S(u�Invoke the underlying file object's fileno() method.

        This will raise AttributeError if the underlying file object
        doesn't support fileno().
        (ufileobjufileno(uself((u+/usr/local/python-3.2/lib/python3.2/gzip.pyufileno�scCs_|jtkrtd��n|jjd�d|_d|_d|_d|_	d|_
dS(u[Return the uncompressed stream file position indicator to the
        beginning of the fileuCan't rewind in write modeisNT(umodeuREADuIOErrorufileobjuseekuTrueu_new_memberuextrabufu	extrasizeu
extrastartuoffset(uself((u+/usr/local/python-3.2/lib/python3.2/gzip.pyurewind�s				cCs
|jtkS(N(umodeuREAD(uself((u+/usr/local/python-3.2/lib/python3.2/gzip.pyureadable�scCs
|jtkS(N(umodeuWRITE(uself((u+/usr/local/python-3.2/lib/python3.2/gzip.pyuwritable�scCsdS(NT(uTrue(uself((u+/usr/local/python-3.2/lib/python3.2/gzip.pyuseekable�sicCs4|r1|dkr"|j|}q1td��n|jtkr�||jkr^td��n||j}td�}x%t|d�D]}|j|�q�W|jt|d��nt|jtkr-||jkr�|j	�n||j}x%t|d�D]}|j
d�qW|j
|d�n|jS(NiuSeek from end not supporteduNegative seek in write modei(uoffsetu
ValueErrorumodeuWRITEuIOErrorubytesurangeuwriteuREADurewinduread(uselfuoffsetuwhenceucountuchunkui((u+/usr/local/python-3.2/lib/python3.2/gzip.pyuseeks(


cCs�|dkr�|j|j}|jjd|�d}|dkrx|j||8_|j||7_|j||�Stj}|j}n|}g}x�|dkr�|j|�}|jd�}||ks�|dkr�t	|�|kr�|d}n|dks|dkrO|j
|d|d��|j||dd��Pn|j
|�|t	|�}t||d�}q�W||jkr�t||jdd�|_ndj
|�S(Nis
isiii����(uoffsetu
extrastartuextrabufufindu	extrasizeusysumaxsizeumin_readsizeureadulenuappendu_unreaduminujoin(uselfusizeuoffsetuiureadsizeubufsuc((u+/usr/local/python-3.2/lib/python3.2/gzip.pyureadlines4	*

Ni(i�i����i����("u__name__u
__module__u__doc__uNoneu	myfileobjumax_read_chunku__init__upropertyufilenameu__repr__u
_check_closedu_init_writeu_write_gzip_headeru
_init_readu_read_gzip_headeruwriteureadupeeku_unreadu_readu_add_read_datau	_read_eofucloseducloseuzlibuZ_SYNC_FLUSHuflushufilenourewindureadableuwritableuseekableuseekureadline(u
__locals__((u+/usr/local/python-3.2/lib/python3.2/gzip.pyuGzipFilehs:
V						)	!		*								c	CsGtj�}td|ddd|��}|j|�WdQX|j�S(u�Compress data in one shot and return the compressed string.
    Optional argument is the compression level, in range of 0-9.
    ufileobjumodeuwbu
compresslevelN(uiouBytesIOuGzipFileuwriteugetvalue(udatau
compresslevelubufuf((u+/usr/local/python-3.2/lib/python3.2/gzip.pyucompressAscCs/tdtj|���}|j�SWdQXdS(uYDecompress a gzip compressed string in one shot.
    Return the decompressed string.
    ufileobjN(uGzipFileuiouBytesIOuread(udatauf((u+/usr/local/python-3.2/lib/python3.2/gzip.pyu
decompressJsc	Cs�tjdd�}|o&|ddk}|rB|dd�}n|sTdg}nxx|D]p}|r|dkr�tddddd	tjj�}tjj}qa|dd�dkr�tdt|��q[nt|d�}t	j|dd�d
�}na|dkr<tjj}tdddd
d	tjj�}n%t	j|d�}t|dd
�}x)|j
d�}|s}Pn|j|�qd|tjjk	r�|j�n|tjjk	r[|j�q[q[WdS(Niiu-du-ufilenameuumodeurbufileobjiu.gzufilename doesn't end in .gz:uwbii����i����(
usysuargvuGzipFileustdinubufferustdoutuprinturepruopenubuiltinsureaduwriteuclose(uargsu
decompressuargufuguchunk((u+/usr/local/python-3.2/lib/python3.2/gzip.pyu_testRs<
!$
u__main__(u__doc__ustructusysutimeuosuzlibubuiltinsuiou__all__uFTEXTuFHCRCuFEXTRAuFNAMEuFCOMMENTuREADuWRITEuU32uLOWU32uwrite32uuread32uopenu_PaddedFileuBufferedIOBaseuGzipFileucompressu
decompressu_testu__name__(((u+/usr/local/python-3.2/lib/python3.2/gzip.pyu<module>s(0$					8��			&
© 2025 GrazzMean