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 \¾0ã @sÄdZddddddgZdZdd lmZdd lZdd lZdd lZdd l Z ydd l m Z Wn e k rtdd l m Z YnXdd lmZmZdZd ZdZGdd„de jƒZddd„Zddd„Zdd„Zd S)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. ÚBZ2FileÚ BZ2CompressorÚBZ2DecompressorÚopenÚcompressÚ decompressz%Nadeem Vawda é)rN)ÚRLock)rrééc@s®eZdZdZd)dd„Zdd„Zed d „ƒZd d „Zd d„Z dd„Z dd„Z d*dd„Z d,dd„Z d.dd„Zdd„Zd0dd„Zd2dd „Zd!d"„Zd#d$„Zejfd%d&„Zd'd(„ZdS)3ra@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. ÚrNé cCsTtƒ|_d|_d|_t|_|dk r.tjdtƒd|ko@dknsNt dƒ‚|dkr`d }t }nb|dkr|d }t }t |ƒ|_ nF|dkr˜d }t }t |ƒ|_ n*|dkr´d}t }t |ƒ|_ nt d|fƒ‚t|tttjfƒ�rðt||ƒ|_d|_||_n.t|dƒ�st|dƒ�r||_||_ntdƒ‚|jt k�rJtj|jttd�}tj|ƒ|_nd|_dS)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'. buffering is ignored. Its use is deprecated. 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. NFz)Use of 'buffering' argument is deprecatedr r z%compresslevel must be between 1 and 9Úr ÚrbÚwÚwbÚxÚxbÚaÚabzInvalid mode: %rTÚreadÚwritez6filename must be a str, bytes, file or PathLike object)Ztrailing_errorr)r r r)rr)rr)rr)rÚ_lockÚ_fpÚ_closefpÚ _MODE_CLOSEDÚ_modeÚwarningsÚwarnÚDeprecationWarningÚ ValueErrorÚ _MODE_READÚ _MODE_WRITErÚ _compressorÚ isinstanceÚstrÚbytesÚosÚPathLikeÚ _builtin_openÚhasattrÚ TypeErrorÚ _compressionZDecompressReaderrÚOSErrorÚioÚBufferedReaderÚ_bufferÚ_pos)ÚselfÚfilenameÚmodeÚ bufferingÚ compresslevelZ mode_codeÚraw©r7ú/usr/lib64/python3.6/bz2.pyÚ__init__+sL      zBZ2File.__init__cCs”|j�„|jtkrdSz<|jtkr.|jjƒn"|jtkrP|jj|j j ƒƒd|_ Wdz|j rf|jjƒWdd|_d|_ t|_d|_XXWdQRXdS)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. NF) rrrr r/Úcloser!rrr"Úflushr)r1r7r7r8r:ps      z BZ2File.closecCs |jtkS)zTrue if this file is closed.)rr)r1r7r7r8Úclosed‰szBZ2File.closedcCs|jƒ|jjƒS)z3Return the file descriptor for the underlying file.)Ú_check_not_closedrÚfileno)r1r7r7r8r>ŽszBZ2File.filenocCs|jƒo|jjƒS)z)Return whether the file supports seeking.)Úreadabler/Úseekable)r1r7r7r8r@“szBZ2File.seekablecCs|jƒ|jtkS)z/Return whether the file was opened for reading.)r=rr )r1r7r7r8r?—szBZ2File.readablecCs|jƒ|jtkS)z/Return whether the file was opened for writing.)r=rr!)r1r7r7r8ÚwritableœszBZ2File.writablerc Cs&|j�|jƒ|jj|ƒSQRXdS)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. N)rÚ_check_can_readr/Úpeek)r1Únr7r7r8rC¡sz BZ2File.peekr c Cs&|j�|jƒ|jj|ƒSQRXdS)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. N)rrBr/r)r1Úsizer7r7r8r®sz BZ2File.readc Cs4|j�$|jƒ|dkrtj}|jj|ƒSQRXdS)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. rN)rrBr-ÚDEFAULT_BUFFER_SIZEr/Úread1)r1rEr7r7r8rG¸s z BZ2File.read1c Cs&|j�|jƒ|jj|ƒSQRXdS)zRRead bytes into b. Returns the number of bytes read (0 for EOF). N)rrBr/Úreadinto)r1Úbr7r7r8rHÅszBZ2File.readintoc CsJt|tƒs$t|dƒstdƒ‚|jƒ}|j�|jƒ|jj|ƒSQRXdS)a 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__zInteger argument expectedN) r#Úintr)r*rJrrBr/Úreadline)r1rEr7r7r8rLÎs  zBZ2File.readlinec CsJt|tƒs$t|dƒstdƒ‚|jƒ}|j�|jƒ|jj|ƒSQRXdS)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. rJzInteger argument expectedN) r#rKr)r*rJrrBr/Ú readlines)r1rEr7r7r8rMÝs  zBZ2File.readlinesc CsL|j�<|jƒ|jj|ƒ}|jj|ƒ|jt|ƒ7_t|ƒSQRXdS)zöWrite a byte string to the file. Returns the number of uncompressed bytes written, which is always len(data). Note that due to buffering, the file on disk may not reflect the data written until close() is called. N)rZ_check_can_writer"rrrr0Úlen)r1ÚdataZ compressedr7r7r8rìs   z BZ2File.writec Cs |j�tjj||ƒSQRXdS)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. N)rr+Ú BaseStreamÚ writelines)r1Úseqr7r7r8rQúszBZ2File.writelinesc Cs(|j�|jƒ|jj||ƒSQRXdS)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. N)rZ_check_can_seekr/Úseek)r1ÚoffsetÚwhencer7r7r8rSsz BZ2File.seekc Cs4|j�$|jƒ|jtkr$|jjƒS|jSQRXdS)z!Return the current file position.N)rr=rr r/Útellr0)r1r7r7r8rVs   z BZ2File.tell)r Nr )réÿÿÿÿ)rWrW)rWrW)rWrW)rW)Ú__name__Ú __module__Ú __qualname__Ú__doc__r9r:Úpropertyr<r>r@r?rArCrrGrHrLrMrrQr-ÚSEEK_SETrSrVr7r7r7r8r s$  E     rr cCsŠd|kr d|krPtd|fƒ‚n0|dk r0tdƒ‚|dk r@tdƒ‚|dk rPtdƒ‚|jddƒ}t|||d �}d|kr‚tj||||ƒS|SdS) aOpen 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). ÚtrIzInvalid mode: %rNz0Argument 'encoding' not supported in binary modez.Argument 'errors' not supported in binary modez/Argument 'newline' not supported in binary moder )r5)rÚreplacerr-Ú TextIOWrapper)r2r3r5ÚencodingÚerrorsÚnewlineZbz_modeZ binary_filer7r7r8r!s cCst|ƒ}|j|ƒ|jƒS)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. )rrr;)rOr5Úcompr7r7r8rJsc Csjg}xZ|r^tƒ}y|j|ƒ}Wntk r<|r6Pn‚YnX|j|ƒ|jsVtdƒ‚|j}qWdj|ƒS)zjDecompress a block of data. For incremental decompression, use a BZ2Decompressor object instead. zACompressed data ended before the end-of-stream marker was reachedó)rrr,ÚappendÚeofrZ unused_dataÚjoin)rOÚresultsZdecompÚresr7r7r8rUs  )rr NNN)r )r[Ú__all__Ú __author__Úbuiltinsrr(r-r&rr+Z threadingrÚ ImportErrorZdummy_threadingZ_bz2rrrr r!rPrrrr7r7r7r8Ús.   (