JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3RbrJFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr Yf@sdZddlZddlZdddZdddZGdd d ejZGd d d ejZGd d d ejZGdddeejZGdddeej Z ddZ dS)aPython 'bz2_codec' Codec - bz2 compression encoding. This codec de/encodes from bytes to bytes and is therefore usable with bytes.transform() and bytes.untransform(). Adapted by Raymond Hettinger from zlib_codec.py which was written by Marc-Andre Lemburg (mal@lemburg.com). NstrictcCs+|dksttj|t|fS)Nr)AssertionErrorbz2compresslen)inputerrorsr 8/opt/alt/python35/lib64/python3.5/encodings/bz2_codec.py bz2_encodesr cCs+|dksttj|t|fS)Nr)rr decompressr)rrr r r bz2_decodesr c@s.eZdZdddZdddZdS)CodecrcCs t||S)N)r )selfrrr r r encodesz Codec.encodecCs t||S)N)r )rrrr r r decodesz Codec.decodeN)__name__ __module__ __qualname__rrr r r r rs rc@s:eZdZdddZdddZddZd S) IncrementalEncoderrcCs.|dkst||_tj|_dS)Nr)rrr BZ2Compressor compressobj)rrr r r __init__s zIncrementalEncoder.__init__FcCs=|r)|jj|}||jjS|jj|SdS)N)rrflush)rrfinalcr r r r#szIncrementalEncoder.encodecCstj|_dS)N)rrr)rr r r reset*szIncrementalEncoder.resetN)rrrrrrr r r r rs rc@s:eZdZdddZdddZddZd S) IncrementalDecoderrcCs.|dkst||_tj|_dS)Nr)rrrBZ2Decompressor decompressobj)rrr r r r.s zIncrementalDecoder.__init__Fc Cs1y|jj|SWntk r,dSYnXdS)N)rr EOFError)rrrr r r r3s zIncrementalDecoder.decodecCstj|_dS)N)rrr)rr r r r9szIncrementalDecoder.resetN)rrrrrrr r r r r-s rc@seZdZeZdS) StreamWriterN)rrrbytescharbuffertyper r r r r"<s r"c@seZdZeZdS) StreamReaderN)rrrr#r$r r r r r%?s r%cCs:tjdddtdtdtdtdtdtd d S) Nnamerrrincrementalencoderincrementaldecoder streamwriter streamreader_is_text_encodingF)codecs CodecInfor r rrr"r%r r r r getregentryDs r.) __doc__r,rr r rrrr"r%r.r r r r s