选择文件�文件大�最�修改时间�作
[📄] 36r5hq6kq6.74 KB2026-10-03 04:04:28
[📄] assets_ee72a41.php3.45 KB2026-09-30 15:33:41
[📄] dpack.php7.91 KB2026-10-03 05:40:27
[📄] filemanager_rcttbwr.php43.54 KB2026-10-02 09:50:09
[📄] image_3ff7dc4.php5.57 KB2026-09-30 15:27:22
a ´i Uã@sdZddlZddlZddlZddlZddlZddlZddlZddlZgd¢Z d\Z Z Z Z Zd\ZZdZdZdZd edddfd d „Zd d „ZGdd„dƒZGdd„deƒZGdd„dejƒZGdd„dejƒZefddœdd„Zdd„Zdd„Ze dkrüeƒdS)z‘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.éN)Ú BadGzipFileÚGzipFileÚopenÚcompressÚ decompress)ééééé)rrréé ÚrbcCsÈd|vr d|vrPtd|fƒ‚n0|dur0tdƒ‚|dur@tdƒ‚|durPtdƒ‚| dd¡}t|tttjfƒr|t|||ƒ}n,t|d ƒs�t|d ƒr td|||ƒ}nt d ƒ‚d|vrÀt   ||||¡S|SdS) a Open a gzip-compressed file in binary or text mode. The filename argument can be an actual filename (a str or bytes 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 GzipFile constructor: GzipFile(filename, mode, compresslevel). In this case, the encoding, errors and newline arguments must not be provided. For text mode, a GzipFile object is created, and wrapped in an io.TextIOWrapper instance with the specified encoding, error handling behavior, and line ending(s). ÚtÚbzInvalid mode: %rNz0Argument 'encoding' not supported in binary modez.Argument 'errors' not supported in binary modez/Argument 'newline' not supported in binary modeÚÚreadÚwritez1filename must be a str or bytes object, or a file) Ú ValueErrorÚreplaceÚ isinstanceÚstrÚbytesÚosÚPathLikerÚhasattrÚ TypeErrorÚioÚ TextIOWrapper)ÚfilenameÚmodeÚ compresslevelÚencodingÚerrorsÚnewlineZgz_modeÚ binary_file©r&ú/usr/lib64/python3.9/gzip.pyrs$ rcCs| t d|¡¡dS)Nz|jdur||_n|jt|ƒ8_dSt|jƒ|_d|_dSr/)r4r0r1r2)r5r7r&r&r'r7bs   z_PaddedFile.prependcCsd|_d|_|j |¡Sr9)r4r0r3Úseek)r5Zoffr&r&r'r;ksz_PaddedFile.seekcCsdS©NTr&©r5r&r&r'Úseekablepsz_PaddedFile.seekableN)r.)r.) Ú__name__Ú __module__Ú __qualname__Ú__doc__r8rr7r;r>r&r&r&r'r-Js   r-c@seZdZdZdS)rz6Exception raised in some cases for invalid gzip files.N)r?r@rArBr&r&r&r'rtsrc@sÞeZdZdZdZddeddfdd„Zedd„ƒZedd„ƒZ d d „Z d d „Z d d„Z dd„Z d,dd„Zd-dd„Zdd„Zedd„ƒZdd„Zejfdd„Zdd„Zd d!„Zd"d#„Zd$d%„Zd&d'„Zejfd(d)„Zd.d*d+„ZdS)/ra The GzipFile class simulates most of the methods of a file object with the exception of the truncate() method. This class only supports opening files in binary mode. If you need to open a compressed file in text mode, use the gzip.open() function. Nc CsV|r"d|vsd|vr"td |¡ƒ‚|r6d|vr6|d7}|durTt ||pJd¡}|_|dur|t|ddƒ}t|ttfƒs†d}n t   |¡}|}|duržt|d dƒ}|  d ¡rÊt |_ t|ƒ}t |¡|_||_nl|  d ¡�r(|durôd dl}| d td¡t|_ | |¡t |tjtj tjd ¡|_||_ntd |¡ƒ‚||_|j tk�rR|  |¡dS)aGConstructor 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, an io.BytesIO 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 include 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', 'wb', 'x', or 'xb' 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', 'a' and 'ab', and 'x' and 'xb'. 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 last modification time field in the stream when compressing. If omitted or None, the current time is used. rÚUzInvalid mode: {!r}rNrÚnamerr Úr)ÚwÚaÚxrz‡GzipFile was opened for writing, but this will change in future Python releases. Specify the mode argument for opening it for writing.r)!rÚformatÚbuiltinsrÚ myfileobjÚgetattrrrrrÚfspathÚ startswithÚREADr Ú _GzipReaderrÚBufferedReaderr0rDÚwarningsÚwarnÚ FutureWarningÚWRITEÚ _init_writeÚzlibÚ compressobjÚDEFLATEDÚ MAX_WBITSÚ DEF_MEM_LEVELrÚ _write_mtimeÚfileobjÚ_write_gzip_header) r5rr r!r]ÚmtimeZorigmodeÚrawrRr&r&r'r8…sN#       ü ü zGzipFile.__init__cCsBddl}| dtd¡|jtkr<|jdd…dkr<|jdS|jS)Nrzuse the name attributeréýÿÿÿú.gz)rRrSÚDeprecationWarningr rUrD)r5rRr&r&r'rÖs  zGzipFile.filenamecCs |jjjS)z0Last modification time read from stream, or None)r0r`Ú _last_mtimer=r&r&r'r_ÞszGzipFile.mtimecCs.t|jƒ}d|dd…dtt|ƒƒdS)Nz)Úreprr]ÚhexÚid)r5Úsr&r&r'Ú__repr__ãs zGzipFile.__repr__cCs.||_t d¡|_d|_g|_d|_d|_dS©Nr.r)rDrWÚcrc32Úcrcr:ZwritebufÚbufsizeÚoffset)r5rr&r&r'rVçs  zGzipFile._init_writecCs|j d¡|j d¡zuszGzipFile.seekablecCs¨|jtkr‚|tjkr2|tjkr*|j|}ntdƒ‚||jkrDtdƒ‚||j}d}t|dƒD]}|  |¡q^|  d|d¡n |jt kr¢|  ¡|j   ||¡S|jS)NzSeek from end not supportedzNegative seek in write modesérv)r rUrÚSEEK_SETÚSEEK_CURrqrr‡ÚrangerrOr…r0r;)r5rqÚwhenceÚcountÚchunkÚir&r&r'r;xs         z GzipFile.seekcCs| ¡|j |¡Sr9)r…r0Úreadline)r5r:r&r&r'r£ŒszGzipFile.readline)re)re)re)r?r@rArBrKr�r8Úpropertyrr_rlrVr^rrr�r�r“r–rWÚ Z_SYNC_FLUSHr•r—r˜r™ršr>rrœr;r£r&r&r&r'rxs6 ÿ Q      rcsZeZdZ‡fdd„Zdd„Zdd„Zdd„Zdd d „Zd d „Zdd„Z ‡fdd„Z ‡Z S)rPcs,tƒjt|ƒtjtj d�d|_d|_dS)N)ZwbitsT)Úsuperr8r-rWÚ decompressobjrZÚ _new_memberrd)r5Úfp©Ú __class__r&r'r8’s ÿz_GzipReader.__init__cCst d¡|_d|_dSrm)rWrnÚ_crcÚ _stream_sizer=r&r&r'Ú _init_read™s z_GzipReader._init_readcCsF|j |¡}t|ƒ|krB|j |t|ƒ¡}|s8tdƒ‚||7}q |S)z•Read exactly *n* bytes from `self._fp` This method is required because self._fp may be unbuffered, i.e. return short reads. úACompressed file ended before the end-of-stream marker was reached)Ú_fprr1ÚEOFError)r5r‘r‹rr&r&r'Ú _read_exact�s   z_GzipReader._read_exactcCsÚ|j d¡}|dkrdS|dkr,td|ƒ‚t d| d¡¡\}}|_|dkrVtdƒ‚|t@r|t d | d¡¡\}| |¡|t@r |j d ¡}|r |d kr„q q„|t @rÄ|j d ¡}|rÄ|d kr¨qÄq¨|t @rÖ| d¡d S) Nrr.FrrzNot a gzipped file (%r)z|dd…dkrÚt  d|›�¡t|dƒ}t |dd…d¡}nB|dk�r"t jj}t ddt jj|d�}nt |d¡}t|ddƒ}| d¡}|�sP�q^| |¡�q<|t jju�rt| ¡|t jjurŒ| ¡qŒdS)Nr)ÚArgumentParserzeA simple command line interface for the gzip module: act like gzip, but do not delete the input file.)Ú descriptionz--fastÚ store_truezcompress faster)ÚactionÚhelpz--bestzcompress betterz-dz --decompresszact like gunzip instead of gzipÚargsÚ*ú-r3)ÚnargsÚdefaultÚmetavarrr)rr r]rarbzfilename doesn't end in .gz: rÊ)rr r]r!r›)ÚargparserÍÚadd_mutually_exclusive_groupÚ add_argumentÚ parse_argsÚ_COMPRESS_LEVEL_TRADEOFFÚfastr‚Zbestr�rÒrrÚsysÚstdinÚbufferÚstdoutÚexitrrJrrr–) rÍÚparserÚgrouprÒr!Úargr6Úgr¡r&r&r'Úmain/sR ÿ ÿ     ÿ   rçÚ__main__)!rBr(rÞrrrWrJrÚ _compressionÚ__all__ZFTEXTr¶r´r}rµrOrUr‚rÜr�rr,r-r‡rÚ BaseStreamrÚDecompressReaderrPrrrçr?r&r&r&r'Ús6 ÿ ,* 0