Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
3 \nOã@sÖdZddlZddlZddlZddlZddlZddlZddlZddlZddddgZ d\Z Z Z Z Zd\ZZddd„Zdd„ZGdd„dƒZGdd„dejƒZGdd„dejƒZddd„Zdd„Zdd„ZedkrÒ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ÚGzipFileÚopenÚcompressÚ decompresséééééÚrbé cCsÈd|kr d|krPtd|fƒ‚n0|dk r0tdƒ‚|dk r@tdƒ‚|dk rPtdƒ‚|jddƒ}t|tttjfƒr|t|||ƒ}n,t|d ƒs�t|d ƒr td|||ƒ}nt d ƒ‚d|krÀt j ||||ƒ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_modeZ binary_file©r#ú/usr/lib64/python3.6/gzip.pyrs$ cCs|jtjd|ƒƒdS)Nz|jdkr||_n|jt|ƒ8_dSt|jƒ|_d|_dS)Nr)r0r,r-r.)r1r3r#r#r$r3]s   z_PaddedFile.prependcCsd|_d|_|jj|ƒS)N)r0r,r/Úseek)r1Zoffr#r#r$r6fsz_PaddedFile.seekcCsdS)NTr#)r1r#r#r$Úseekableksz_PaddedFile.seekableN)r+)r+) Ú__name__Ú __module__Ú __qualname__Ú__doc__r4rr3r6r7r#r#r#r$r*Es   r*c@sÔeZdZdZdZd-dd„Zedd„ƒZedd „ƒZd d „Z d d „Z dd„Z dd„Z d/dd„Z d1dd„Zdd„Zedd„ƒZdd„Zejfdd„Zdd „Zd!d"„Zd#d$„Zd%d&„Zd'd(„Zejfd)d*„Zd3d+d,„ZdS)4ra 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. Nr cCs2|r"d|ksd|kr"tdj|ƒƒ‚|r6d|kr6|d7}|dkrTtj||pJdƒ}|_|dkr|t|ddƒ}t|ttfƒs†d}n t j |ƒ}|dkršt|d dƒ}|j d ƒrÆt |_ t|ƒ}tj|ƒ|_||_nN|j dƒ�rt|_ |j|ƒtj|tjtj tjdƒ|_||_ntdj|ƒƒ‚||_|j tk�r.|jƒ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Úxr)r?r@rA)rÚformatÚbuiltinsrÚ myfileobjÚgetattrrrrrÚfspathÚ startswithÚREADrÚ _GzipReaderrÚBufferedReaderr,r=ÚWRITEÚ _init_writeÚzlibZ compressobjZDEFLATEDÚ MAX_WBITSZ DEF_MEM_LEVELrÚ _write_mtimeÚfileobjÚ_write_gzip_header)r1rrrrPÚmtimeÚrawr#r#r$r4{s>#         zGzipFile.__init__cCsBddl}|jdtdƒ|jtkr<|jdd…dkr<|jdS|jS)Nrzuse the name attributeréz.gzéýÿÿÿ)ÚwarningsÚwarnÚDeprecationWarningrrKr=)r1rVr#r#r$rÄs  zGzipFile.filenamecCs |jjjS)z0Last modification time read from stream, or None)r,rSÚ _last_mtime)r1r#r#r$rRÌszGzipFile.mtimecCs.t|jƒ}d|dd…dtt|ƒƒdS)Nzéÿÿÿÿ)ÚreprrPÚhexÚid)r1Úsr#r#r$Ú__repr__Ñs zGzipFile.__repr__cCs.||_tjdƒ|_d|_g|_d|_d|_dS)Nr+r)r=rMÚcrc32Úcrcr5ZwritebufÚbufsizeÚoffset)r1rr#r#r$rLÕs  zGzipFile._init_writec Csæ|jjdƒ|jjdƒytjdd…}|o|ddk}|r.|dd…}|s8dg}�xþ|D]ö}|r¬|dkrltddtjjd�}tjj}qê|d d…d krŒtd t|ƒƒq@t|dƒ}t j|dd…d ƒ}n>|dkrÐtjj}tdd tjjd�}nt j|dƒ}t|d d ƒ}x |j d ƒ}|�sþP|j |ƒqìW|tjjk �r"|j ƒ|tjjk r@|j ƒq@WdS)Nrrz-dú-rr )rrrPrTz.gzzfilename doesn't end in .gz:r©irUrU) ÚsysÚargvrÚstdinÚbufferÚstdoutÚprintr]rrCrrr�)ÚargsrÚargr2Úgr‹r#r#r$Ú_tests<       r¶Ú__main__)rrrr r )rr)r r NNN)r )r;r%r­rqrrMrCrZ _compressionÚ__all__ZFTEXTrœršror›rHrKrr)r*Z BaseStreamrZDecompressReaderrIrrr¶r8r#r#r#r$Ús,   +)  &