PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB`  lY$O@sXdZddlZddlZddlZddlZddlZddlZddlZddlZddddgZ ddd d d f\Z Z Z Z Zddf\ZZd d dddddZddZGdddZGdddejZGdddejZd ddZddZddZedkrTedS)zFunctions 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.NGzipFileopencompress decompressrb cCsd|kr.d|krvtd|fnH|dk rFtd|dk r^td|dk rvtd|jdd}t|ttfrt|||}nBt|d st|d rtd|||}n td d|krtj ||||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). tbzInvalid mode: %rNz0Argument 'encoding' not supported in binary modez.Argument 'errors' not supported in binary modez/Argument 'newline' not supported in binary modereadwritez1filename must be a str or bytes object, or a file) ValueErrorreplace isinstancestrbytesrhasattr TypeErrorio TextIOWrapper)filenamemode compresslevelencodingerrorsnewlineZgz_mode binary_filer"#/opt/python35/lib/python3.5/gzip.pyrs$          cCs|jtjd|dS)Nzr?r@)rformatbuiltinsr myfileobjgetattrrrr startswithREADr _GzipReaderrBufferedReaderr+r<WRITE _init_writezlib compressobjDEFLATED MAX_WBITS DEF_MEM_LEVELr _write_mtimefileobj_write_gzip_header)r0rrrrQmtimerawr"r"r#r3{s<#             zGzipFile.__init__cCsYddl}|jdtd|jtkrR|jdddkrR|jdS|jS)Nrzuse the name attributerz.gz)warningswarnDeprecationWarningrrIr<)r0rWr"r"r#rs  ( zGzipFile.filenamecCs |jjjS)z0Last modification time read from stream, or None)r+rT _last_mtime)r0r"r"r#rSszGzipFile.mtimecCs9t|j}d|dddtt|dS)Nz)reprrQhexid)r0sr"r"r#__repr__szGzipFile.__repr__cCsC||_tjd|_d|_g|_d|_d|_dS)Nr*r)r<rKcrc32crcr4Zwritebufbufsizeoffset)r0rr"r"r#rJs     zGzipFile._init_writec Cs7|jjd|jjdyVtjj|j}t|tsV|jd}|j dru|dd }Wnt k rd}YnXd}|rt }|jjt |jd|j }|dkrtj}t|jt||jjd|jjd |r3|jj|d dS) Nsszlatin-1s.gzrUr*rsssrV)rQrospathbasenamer<rrencodeendswithUnicodeEncodeErrorFNAMEchrrPtimer(int)r0ZfnameflagsrSr"r"r#rRs,     zGzipFile._write_gzip_headercCs|j|jtkr7ddl}t|jd|jdkrRtdt|t rpt |}nt |}|j }|dkr|jj |jj||j|7_tj||j|_|j|7_|S)Nrz$write() on read-only GzipFile objectz!write() on closed GzipFile object)_check_not_closedrrIerrnoOSErrorEBADFrQrrrr, memoryviewnbytesrrr4rKrcrdrf)r0datarslengthr"r"r#rs       zGzipFile.writercCsG|j|jtkr7ddl}t|jd|jj|S)Nrz$read() on write-only GzipFile object)rrrrFrsrtrur+r)r0r4rsr"r"r#r s   z GzipFile.readcCs\|j|jtkr7ddl}t|jd|dkrLtj}|jj |S)zdImplements BufferedIOBase.read1() Reads up to a buffer's worth of data is size is negative.rNz%read1() on write-only GzipFile object) rrrrFrsrtrurDEFAULT_BUFFER_SIZEr+read1)r0r4rsr"r"r#r{s    zGzipFile.read1cCsG|j|jtkr7ddl}t|jd|jj|S)Nrz$peek() on write-only GzipFile object)rrrrFrsrtrur+peek)r0nrsr"r"r#r|!s   z GzipFile.peekcCs |jdkS)N)rQ)r0r"r"r#closed(szGzipFile.closedc Cs|j}|dkrdSd|_zl|jtkrq|j|jjt||jt||jd@n|jt kr|j j Wd|j }|rd|_ |j XdS)Nl) rQrrIrrflushr(rdr4rFr+closerC)r0rQrCr"r"r#r,s     zGzipFile.closecCsF|j|jtkrB|jj|jj||jjdS)N)rrrrIrQrrr)r0Z zlib_moder"r"r#r?s zGzipFile.flushcCs |jjS)zInvoke the underlying file object's fileno() method. This will raise AttributeError if the underlying file object doesn't support fileno(). )rQfileno)r0r"r"r#rFszGzipFile.filenocCs/|jtkrtd|jjddS)z[Return the uncompressed stream file position indicator to the beginning of the filezCan't rewind in write moderN)rrFrtr+r5)r0r"r"r#rewindNs zGzipFile.rewindcCs |jtkS)N)rrF)r0r"r"r#readableUszGzipFile.readablecCs |jtkS)N)rrI)r0r"r"r#writableXszGzipFile.writablecCsdS)NTr")r0r"r"r#r6[szGzipFile.seekablecCs|jtkr|tjkrI|tjkr=|j|}n td||jkrdtd||j}td}x%t |dD]}|j |qW|j t|dn,|jt kr|j |j j||S|jS)NzSeek from end not supportedzNegative seek in write modei)rrIrSEEK_SETSEEK_CURrfrrtrrangerrFrrr+r5)r0rfwhencecountchunkir"r"r#r5^s      z GzipFile.seekcCs|j|jj|S)N)rrr+readline)r0r4r"r"r#rrs zGzipFile.readliner]r]r])r7r8r9r:rCr3propertyrrSrbrJrRrrr{r|r~rrK Z_SYNC_FLUSHrrrrrr6rrr5rr"r"r"r#rns. F           cseZdZfddZddZddZddZdd d Zd d ZddZ fddZ S)rGcs<tjt|tjdtj d|_d|_dS)NZwbitsT)superr3r)rK decompressobjrN _new_memberrZ)r0fp) __class__r"r#r3xs  z_GzipReader.__init__cCstjd|_d|_dS)Nr*r)rKrc_crc _stream_size)r0r"r"r# _init_readsz_GzipReader._init_readcCsg|jj|}xNt||krb|jj|t|}|sUtd||7}qW|S)zRead exactly *n* bytes from `self._fp` This method is required because self._fp may be unbuffered, i.e. return short reads. zACompressed file ended before the end-of-stream marker was reached)_fprr,EOFError)r0r}rxrr"r"r# _read_exacts z_GzipReader._read_exactcCs;|jjd}|dkr"dS|dkr>td|tjd|jd\}}|_|dkr}td|t@rtjd |jd\}|j||t@rx*|jjd }| s|d krPqW|t @r x*|jjd }| s|d krPqW|t @r7|jdd S) Nrr*FszNot a gzipped file (%r)zs(0    $+ )   &