tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
U\¬Qc@sÆdZddlZddlZdd„Zdd„Zdejfd„ƒYZdejfd    „ƒYZd
ejfd „ƒYZd eejfd „ƒYZdeej    fd„ƒYZ    d„Z
dS(s2 Python 'bz2_codec' Codec - bz2 compression encoding
 
    Unlike most of the other codecs which target Unicode, this codec
    will return Python string objects for both encode and decode.
 
    Adapted by Raymond Hettinger from zlib_codec.py which was written
    by Marc-Andre Lemburg (mal@lemburg.com).
 
iÿÿÿÿNtstrictcCs1|dkst‚tj|ƒ}|t|ƒfS(s Encodes the object input and returns a tuple (output
        object, length consumed).
 
        errors defines the error handling to apply. It defaults to
        'strict' handling which is the only currently supported
        error handling for this codec.
 
    R(tAssertionErrortbz2tcompresstlen(tinputterrorstoutput((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/encodings/bz2_codec.pyt
bz2_encodes
cCs1|dkst‚tj|ƒ}|t|ƒfS(sË Decodes the object input and returns a tuple (output
        object, length consumed).
 
        input must be an object which provides the bf_getreadbuf
        buffer slot. Python strings, buffer objects and memory
        mapped files are examples of objects providing this slot.
 
        errors defines the error handling to apply. It defaults to
        'strict' handling which is the only currently supported
        error handling for this codec.
 
    R(RRt
decompressR(RRR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/encodings/bz2_codec.pyt
bz2_decodestCodeccBs eZdd„Zdd„ZRS(RcCs t||ƒS(N(R(tselfRR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/encodings/bz2_codec.pytencode1scCs t||ƒS(N(R
(R RR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/encodings/bz2_codec.pytdecode3s(t__name__t
__module__R R(((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/encodings/bz2_codec.pyR /s tIncrementalEncodercBs)eZdd„Zed„Zd„ZRS(RcCs.|dkst‚||_tjƒ|_dS(NR(RRRt BZ2Compressort compressobj(R R((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/encodings/bz2_codec.pyt__init__7s    cCs=|r)|jj|ƒ}||jjƒS|jj|ƒSdS(N(RRtflush(R Rtfinaltc((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/encodings/bz2_codec.pyR <scCstjƒ|_dS(N(RRR(R ((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/encodings/bz2_codec.pytresetCs(RRRtFalseR R(((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/encodings/bz2_codec.pyR6s  tIncrementalDecodercBs)eZdd„Zed„Zd„ZRS(RcCs.|dkst‚||_tjƒ|_dS(NR(RRRtBZ2Decompressort decompressobj(R R((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/encodings/bz2_codec.pyRGs    cCs-y|jj|ƒSWntk
r(dSXdS(Nt(RR    tEOFError(R RR((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/encodings/bz2_codec.pyRLs cCstjƒ|_dS(N(RRR(R ((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/encodings/bz2_codec.pyRRs(RRRRRR(((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/encodings/bz2_codec.pyRFs  t StreamWritercBseZRS((RR(((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/encodings/bz2_codec.pyRUst StreamReadercBseZRS((RR(((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/encodings/bz2_codec.pyR XscCs4tjdddtdtdtdtdtdtƒS(    NtnameRR Rtincrementalencodertincrementaldecodert streamwritert streamreader(tcodecst    CodecInfoRR
RRRR (((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/encodings/bz2_codec.pyt getregentry]s    ( t__doc__R&RRR
R RRRR R((((s[/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/encodings/bz2_codec.pyt<module>    s