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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
L\¬Qc@s7dZddlZddlZyddlTWn#ek
rQZedeƒ‚nXddddd    d
d d d dddddddddddddddgZdZdZ    Z
dZ Z d Z d!Zejd"krèe
ZZe Zne ZZeZe
Ze Ze ZeZd#efd$„ƒYZd%dNd&„ƒYZd'efd(„ƒYZd)efd*„ƒYZd+efd,„ƒYZd-efd.„ƒYZd/efd0„ƒYZd1efd2„ƒYZ d3dOd4„ƒYZ!d5dPd6„ƒYZ"d7dd8d9d:„Z$dd8d;„Z%d<„Z&d=„Z'd>„Z(d?„Z)d@„Z*dA„Z+d8dB„Z,d8dC„Z-dD„Z.dE„Z/y@e0d8ƒZ1e0dFƒZ2e0dGƒZ3e0dHƒZ4e0dIƒZ5Wn/e6k
rØdZ1dZ2dZ3dZ4dZ5nXdJZ7e7rôddl8Z8ne9dKkr3e%ej:dLdMƒe_:e%ej;dMdLƒe_;ndS(Qsž codecs -- Python Codec Registry, API and helpers.
 
 
Written by Marc-Andre Lemburg (mal@lemburg.com).
 
(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
 
iÿÿÿÿN(t*s%Failed to load the builtin codecs: %stregistertlookuptopent EncodedFiletBOMtBOM_BEtBOM_LEtBOM32_BEtBOM32_LEtBOM64_BEtBOM64_LEtBOM_UTF8t    BOM_UTF16t BOM_UTF16_LEt BOM_UTF16_BEt    BOM_UTF32t BOM_UTF32_LEt BOM_UTF32_BEt strict_errorst ignore_errorstreplace_errorstxmlcharrefreplace_errorstregister_errort lookup_errorssÿþsþÿsÿþtþÿtlittlet    CodecInfocBs)eZdddddd„Zd„ZRS(c    Csatj|||||fƒ}||_||_||_||_||_||_||_|S(N(    ttuplet__new__tnametencodetdecodetincrementalencodertincrementaldecodert streamwritert streamreader(    tclsRR R$R#R!R"Rtself((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRMs                            cCs)d|jj|jj|jt|ƒfS(Ns&<%s.%s object for encoding %s at 0x%x>(t    __class__t
__module__t__name__Rtid(R&((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyt__repr__YsN(R)R(tNoneRR+(((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRKs tCodeccBs&eZdZdd„Zdd„ZRS(s­ Defines the interface for stateless encoders/decoders.
 
        The .encode()/.decode() methods may use different error
        handling schemes by providing the errors argument. These
        string values are predefined:
 
         'strict' - raise a ValueError error (or a subclass)
         'ignore' - ignore the character and continue with the next
         'replace' - replace with a suitable replacement character;
                    Python will use the official U+FFFD REPLACEMENT
                    CHARACTER for the builtin Unicode codecs on
                    decoding and '?' on encoding.
         'xmlcharrefreplace' - Replace with the appropriate XML
                               character reference (only for encoding).
         'backslashreplace'  - Replace with backslashed escape sequences
                               (only for encoding).
 
        The set of allowed values can be extended via register_error.
 
    tstrictcCs
t‚dS(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.
 
            The method may not store state in the Codec instance. Use
            StreamCodec for codecs which have to keep state in order to
            make encoding/decoding efficient.
 
            The encoder must be able to handle zero length input and
            return an empty object of the output object type in this
            situation.
 
        N(tNotImplementedError(R&tinputterrors((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRrscCs
t‚dS(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.
 
            The method may not store state in the Codec instance. Use
            StreamCodec for codecs which have to keep state in order to
            make encoding/decoding efficient.
 
            The decoder must be able to handle zero length input and
            return an empty object of the output object type in this
            situation.
 
        N(R/(R&R0R1((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR …s(R)R(t__doc__RR (((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR-\s tIncrementalEncodercBsAeZdZdd„Zed„Zd„Zd„Zd„ZRS(sè
    An IncrementalEncoder encodes an input in multiple steps. The input can be
    passed piece by piece to the encode() method. The IncrementalEncoder remembers
    the state of the Encoding process between calls to encode().
    R.cCs||_d|_dS(sô
        Creates an IncrementalEncoder instance.
 
        The IncrementalEncoder may use different error handling schemes by
        providing the errors keyword argument. See the module docstring
        for a list of possible values.
        tN(R1tbuffer(R&R1((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyt__init__¢s    cCs
t‚dS(sA
        Encodes input and returns the resulting object.
        N(R/(R&R0tfinal((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR­scCsdS(s:
        Resets the encoder to the initial state.
        N((R&((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pytreset³scCsdS(s:
        Return the current state of the encoder.
        i((R&((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pytgetstate¸scCsdS(sl
        Set the current state of the encoder. state must have been
        returned by getstate().
        N((R&tstate((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pytsetstate¾s(    R)R(R2R6tFalseRR8R9R;(((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR3œs          tBufferedIncrementalEncodercBsJeZdZdd„Zd„Zed„Zd„Zd„Zd„Z    RS(sÀ
    This subclass of IncrementalEncoder can be used as the baseclass for an
    incremental encoder if the encoder must keep some of the output in a
    buffer between calls to encode().
    R.cCstj||ƒd|_dS(NR4(R3R6R5(R&R1((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR6ÊscCs
t‚dS(N(R/(R&R0R1R7((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyt_buffer_encodeÎscCs<|j|}|j||j|ƒ\}}|||_|S(N(R5R>R1(R&R0R7tdatatresulttconsumed((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRÓs  cCstj|ƒd|_dS(NR4(R3R8R5(R&((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR8Ûs cCs |jp dS(Ni(R5(R&((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR9ßscCs|p    d|_dS(NR4(R5(R&R:((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR;âs(
R)R(R2R6R>R<RR8R9R;(((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR=Äs              tIncrementalDecodercBsAeZdZdd„Zed„Zd„Zd„Zd„ZRS(sè
    An IncrementalDecoder decodes an input in multiple steps. The input can be
    passed piece by piece to the decode() method. The IncrementalDecoder
    remembers the state of the decoding process between calls to decode().
    R.cCs ||_dS(só
        Creates a IncrementalDecoder instance.
 
        The IncrementalDecoder may use different error handling schemes by
        providing the errors keyword argument. See the module docstring
        for a list of possible values.
        N(R1(R&R1((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR6ëscCs
t‚dS(sA
        Decodes input and returns the resulting object.
        N(R/(R&R0R7((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR õscCsdS(s:
        Resets the decoder to the initial state.
        N((R&((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR8ûscCsdS(s    
        Return the current state of the decoder.
 
        This must be a (buffered_input, additional_state_info) tuple.
        buffered_input must be a bytes object containing bytes that
        were passed to decode() that have not yet been converted.
        additional_state_info must be a non-negative integer
        representing the state of the decoder WITHOUT yet having
        processed the contents of buffered_input.  In the initial state
        and after reset(), getstate() must return (b"", 0).
        R4i(R4i((R&((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR9s cCsdS(s¶
        Set the current state of the decoder.
 
        state must have been returned by getstate().  The effect of
        setstate((b"", 0)) must be equivalent to reset().
        N((R&R:((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR;s(    R)R(R2R6R<R R8R9R;(((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRBås 
        tBufferedIncrementalDecodercBsJeZdZdd„Zd„Zed„Zd„Zd„Zd„Z    RS(s®
    This subclass of IncrementalDecoder can be used as the baseclass for an
    incremental decoder if the decoder must be able to handle incomplete byte
    sequences.
    R.cCstj||ƒd|_dS(NR4(RBR6R5(R&R1((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR6scCs
t‚dS(N(R/(R&R0R1R7((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyt_buffer_decode scCs<|j|}|j||j|ƒ\}}|||_|S(N(R5RDR1(R&R0R7R?R@RA((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR %s  cCstj|ƒd|_dS(NR4(RBR8R5(R&((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR8-s cCs |jdfS(Ni(R5(R&((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR91scCs|d|_dS(Ni(R5(R&R:((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR;5s(
R)R(R2R6RDR<R R8R9R;(((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRCs              t StreamWritercBsYeZdd„Zd„Zd„Zd„Zdd„Zed„Zd„Z    d    „Z
RS(
R.cCs||_||_dS(s[ Creates a StreamWriter instance.
 
            stream must be a file-like object open for writing
            (binary) data.
 
            The StreamWriter may use different error handling
            schemes by providing the errors keyword argument. These
            parameters are predefined:
 
             'strict' - raise a ValueError (or a subclass)
             'ignore' - ignore the character and continue with the next
             'replace'- replace with a suitable replacement character
             'xmlcharrefreplace' - Replace with the appropriate XML
                                   character reference.
             'backslashreplace'  - Replace with backslashed escape
                                   sequences (only for encoding).
 
            The set of allowed parameter values can be extended via
            register_error.
        N(tstreamR1(R&RFR1((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR6Bs    cCs/|j||jƒ\}}|jj|ƒdS(s> Writes the object's contents encoded to self.stream.
        N(RR1RFtwrite(R&tobjectR?RA((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRG[scCs|jdj|ƒƒdS(s[ Writes the concatenated list of strings to the stream
            using .write().
        R4N(RGtjoin(R&tlist((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyt
writelinesbscCsdS(s5 Flushes and resets the codec buffers used for keeping state.
 
            Calling this method should ensure that the data on the
            output is put into a clean state, that allows appending
            of new fresh data without having to rescan the whole
            stream to recover state.
 
        N((R&((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR8is
icCs<|jj||ƒ|dkr8|dkr8|jƒndS(Ni(RFtseekR8(R&toffsettwhence((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRLuscCs||j|ƒS(s? Inherit all other methods from the underlying stream.
        (RF(R&Rtgetattr((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyt __getattr__zscCs|S(N((R&((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyt    __enter__scCs|jjƒdS(N(RFtclose(R&ttypetvaluettb((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyt__exit__„s( R)R(R6RGRKR8RLRORPRQRV(((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRE@s                   t StreamReadercBs•eZdd„Zdd„Zdded„Zded„Zded„Z    d„Z
dd    „Z d
„Z d „Z ed „Zd „Zd„ZRS(R.cCs1||_||_d|_d|_d|_dS(s[ Creates a StreamReader instance.
 
            stream must be a file-like object open for reading
            (binary) data.
 
            The StreamReader may use different error handling
            schemes by providing the errors keyword argument. These
            parameters are predefined:
 
             'strict' - raise a ValueError (or a subclass)
             'ignore' - ignore the character and continue with the next
             'replace'- replace with a suitable replacement character;
 
            The set of allowed parameter values can be extended via
            register_error.
        R4N(RFR1t
bytebuffert
charbufferR,t
linebuffer(R&RFR1((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR6‹s
                cCs
t‚dS(N(R/(R&R0R1((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR ¥siÿÿÿÿc CsÃ|jr*dj|jƒ|_d|_nxTtr€|dkrw|dkr[|jrtPqtqt|jƒ|krPqnt|jƒ|krPn|dkr®|jjƒ}n|jj|ƒ}|j|}y|j    ||j
ƒ\}}Wnht k
rV}|rP|j    ||j  |j
ƒ\}}|j tƒ}    t|    ƒdkrS‚qSqW‚nX|||_|j|7_|s-Pq-q-W|dkr¢|j}
d|_n|j| }
|j||_|
S(s Decodes data from the stream self.stream and returns the
            resulting object.
 
            chars indicates the number of characters to read from the
            stream. read() will never return more than chars
            characters, but it might return less, if there are not enough
            characters available.
 
            size indicates the approximate maximum number of bytes to
            read from the stream for decoding purposes. The decoder
            can modify this setting as appropriate. The default value
            -1 indicates to read and decode as much as possible.  size
            is intended to prevent having to decode huge files in one
            step.
 
            If firstline is true, and a UnicodeDecodeError happens
            after the first line terminator in the input only the first line
            will be returned, the rest of the input will be kept until the
            next call to read().
 
            The method should use a greedy read strategy meaning that
            it should read as much data as is allowed within the
            definition of the encoding and the given size, e.g.  if
            optional encoding endings or state markers are available
            on the stream, these should be read too.
        R4iiN(RZRIRYR,tTruetlenRFtreadRXR R1tUnicodeDecodeErrortstartt
splitlines( R&tsizetcharst    firstlinetnewdataR?tnewcharst decodedbytestexctlinesR@((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR]¨sF                 "            c    CsI|jrq|jd}|jd=t|jƒdkrQ|jd|_d |_n|sm|jtƒd}n|S|pzd}d}x¿trD|j|dtƒ}|rØ|jdƒrØ||jddddƒ7}qØn||7}|jtƒ}|rît|ƒdkrˆ|d}|d=t|ƒdkrT|d    c|j7<||_d |_n|d|j|_|s„|jtƒd}nPn|d}|djtƒd}||krîdj    |dƒ|j|_|rá|}n|}Pqîn| s|d k    r(|r$| r$|jtƒd}nPn|d
kr†|d 9}q†q†W|S( s± Read one line from the input stream and return the
            decoded data.
 
            size, if given, is passed as size argument to the
            read() method.
 
        iiiHR4Rcs RaRbiÿÿÿÿi@iN(
RZR\RYR,R`R<R[R]tendswithRI(    R&RatkeependstlinetreadsizeR?Rht line0withendtline0withoutend((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pytreadline÷sZ     
      "
 
     
       cCs|jƒ}|j|ƒS(sZ Read all lines available on the input stream
            and return them as list of lines.
 
            Line breaks are implemented using the codec's decoder
            method and are included in the list entries.
 
            sizehint, if given, is ignored since there is no efficient
            way to finding the true end-of-line.
 
        (R]R`(R&tsizehintRjR?((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyt    readlines@s cCsd|_d|_d|_dS(sã Resets the codec buffers used for keeping state.
 
            Note that no stream repositioning should take place.
            This method is primarily intended to be able to recover
            from decoding errors.
 
        R4uN(RXRYR,RZ(R&((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR8Os            icCs!|jj||ƒ|jƒdS(sp Set the input stream's current position.
 
            Resets the codec buffers used for keeping state.
        N(RFRLR8(R&RMRN((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRL\scCs |jƒ}|r|St‚dS(s4 Return the next decoded line from the input stream.N(Rot StopIteration(R&Rk((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pytnextds cCs|S(N((R&((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyt__iter__lscCs||j|ƒS(s? Inherit all other methods from the underlying stream.
        (RF(R&RRO((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRPoscCs|S(N((R&((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRQvscCs|jjƒdS(N(RFRR(R&RSRTRU((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRVysN(R)R(R6R R<R]R,R[RoRqR8RLRsRtRORPRQRV(((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRW‰s  OI                  tStreamReaderWritercBs›eZdZdZdd„Zdd„Zdd„Zdd„Zd„Z    d    „Z
d
„Z d „Z d „Z d d„Zed„Zd„Zd„ZRS(s StreamReaderWriter instances allow wrapping streams which
        work in both read and write modes.
 
        The design is such that one can use the factory functions
        returned by the codec.lookup() function to construct the
        instance.
 
    tunknownR.cCs:||_|||ƒ|_|||ƒ|_||_dS(sR Creates a StreamReaderWriter instance.
 
            stream must be a Stream-like object.
 
            Reader, Writer must be factory functions or classes
            providing the StreamReader, StreamWriter interface resp.
 
            Error handling is done in the same way as defined for the
            StreamWriter/Readers.
 
        N(RFtreadertwriterR1(R&RFtReadertWriterR1((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR6‹s    iÿÿÿÿcCs|jj|ƒS(N(RwR](R&Ra((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR]scCs|jj|ƒS(N(RwRo(R&Ra((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRo¡scCs|jj|ƒS(N(RwRq(R&Rp((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRq¥scCs |jjƒS(s4 Return the next decoded line from the input stream.(RwRs(R&((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRs©scCs|S(N((R&((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRt®scCs|jj|ƒS(N(RxRG(R&R?((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRG±scCs|jj|ƒS(N(RxRK(R&RJ((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRKµscCs|jjƒ|jjƒdS(N(RwR8Rx(R&((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR8¹s icCsL|jj||ƒ|jjƒ|dkrH|dkrH|jjƒndS(Ni(RFRLRwR8Rx(R&RMRN((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRL¾s cCs||j|ƒS(s? Inherit all other methods from the underlying stream.
        (RF(R&RRO((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRPÄscCs|S(N((R&((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRQÍscCs|jjƒdS(N(RFRR(R&RSRTRU((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRVÐsN(R)R(R2tencodingR6R]R,RoRqRsRtRGRKR8RLRORPRQRV(((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRu~s                                  t StreamRecodercBs•eZdZdZdZdd„Zdd„Zdd„Zdd„Z    d„Z
d    „Z d
„Z d „Z d „Zed „Zd„Zd„ZRS(sE StreamRecoder instances provide a frontend - backend
        view of encoding data.
 
        They use the complete set of APIs returned by the
        codecs.lookup() function to implement their task.
 
        Data written to the stream is first decoded into an
        intermediate format (which is dependent on the given codec
        combination) and then written to the stream using an instance
        of the provided Writer class.
 
        In the other direction, data is read from the stream using a
        Reader instance and then return encoded data to the caller.
 
    RvR.cCsL||_||_||_|||ƒ|_|||ƒ|_||_dS(sº Creates a StreamRecoder instance which implements a two-way
            conversion: encode and decode work on the frontend (the
            input to .read() and output of .write()) while
            Reader and Writer work on the backend (reading and
            writing to the stream).
 
            You can use these objects to do transparent direct
            recodings from e.g. latin-1 to utf-8 and back.
 
            stream must be a file-like object.
 
            encode, decode must adhere to the Codec interface, Reader,
            Writer must be factory functions or classes providing the
            StreamReader, StreamWriter interface resp.
 
            encode and decode are needed for the frontend translation,
            Reader and Writer for the backend translation. Unicode is
            used as intermediate encoding.
 
            Error handling is done in the same way as defined for the
            StreamWriter/Readers.
 
        N(RFRR RwRxR1(R&RFRR RyRzR1((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR6ês             iÿÿÿÿcCs1|jj|ƒ}|j||jƒ\}}|S(N(RwR]RR1(R&RaR?t bytesencoded((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR] scCsO|dkr|jjƒ}n|jj|ƒ}|j||jƒ\}}|S(N(R,RwRoRR1(R&RaR?R}((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRos
 cCs7|jjƒ}|j||jƒ\}}|jdƒS(Ni(RwR]RR1R`(R&RpR?R}((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRqscCs.|jjƒ}|j||jƒ\}}|S(s4 Return the next decoded line from the input stream.(RwRsRR1(R&R?R}((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRs scCs|S(N((R&((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRt'scCs+|j||jƒ\}}|jj|ƒS(N(R R1RxRG(R&R?t bytesdecoded((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRG*scCs:dj|ƒ}|j||jƒ\}}|jj|ƒS(NR4(RIR R1RxRG(R&RJR?R~((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRK/scCs|jjƒ|jjƒdS(N(RwR8Rx(R&((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR85s cCs||j|ƒS(s? Inherit all other methods from the underlying stream.
        (RF(R&RRO((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRP:scCs|S(N((R&((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRQAscCs|jjƒdS(N(RFRR(R&RSRTRU((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRVDsN(R)R(R2t data_encodingt file_encodingR6R]R,RoRqRsRtRGRKR8RORPRQRV(((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyR|Õs                                 trbR.icCsË|dk    rrd|krV|jƒjddƒ}|d tdƒkrVd|}qVnd|krr|d}qrntj|||ƒ}|dkr—|St|ƒ}t||j|j    |ƒ}||_
|S(s­ Open an encoded file using the given mode and return
        a wrapped version providing transparent encoding/decoding.
 
        Note: The wrapped version will only accept the object format
        defined by the codecs, i.e. Unicode objects for most builtin
        codecs. Output is also codec dependent and will usually be
        Unicode as well.
 
        Files are always opened in binary mode, even if no binary mode
        was specified. This is done to avoid data loss due to encodings
        using 8-bit values. The default file mode is 'rb' meaning to
        open the file in binary read mode.
 
        encoding specifies the encoding which is to be used for the
        file.
 
        errors may be given to define the error handling. It defaults
        to 'strict' which causes ValueErrors to be raised in case an
        encoding error occurs.
 
        buffering has the same meaning as for the builtin open() API.
        It defaults to line buffered.
 
        The returned wrapped file object provides an extra attribute
        .encoding which allows querying the used encoding. This
        attribute is only available if an encoding was specified as
        parameter.
 
    tUR4itrwatrtbN( R,tstriptreplacetsett __builtin__RRRuR$R#R{(tfilenametmodeR{R1t    bufferingtfiletinfotsrw((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRIs         cCsj|dkr|}nt|ƒ}t|ƒ}t||j|j|j|j|ƒ}||_||_|S(så Return a wrapped version of file which provides transparent
        encoding translation.
 
        Strings written to the wrapped file are interpreted according
        to the given data_encoding and then written to the original
        file as string using file_encoding. The intermediate encoding
        will usually be Unicode but depends on the specified codecs.
 
        Strings are read from the file using file_encoding and then
        passed back to the caller as string using data_encoding.
 
        If file_encoding is not given, it defaults to data_encoding.
 
        errors may be given to define the error handling. It defaults
        to 'strict' which causes ValueErrors to be raised in case an
        encoding error occurs.
 
        The returned wrapped file object provides two extra attributes
        .data_encoding and .file_encoding which reflect the given
        parameters of the same name. The attributes can be used for
        introspection by Python programs.
 
    N(    R,RR|RR R$R#RR€(RRR€R1t    data_infot    file_infotsr((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyRzs               cCs t|ƒjS(sž Lookup up the codec for the given encoding and return
        its encoder function.
 
        Raises a LookupError in case the encoding cannot be found.
 
    (RR(R{((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyt
getencoder scCs t|ƒjS(sž Lookup up the codec for the given encoding and return
        its decoder function.
 
        Raises a LookupError in case the encoding cannot be found.
 
    (RR (R{((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyt
getdecoderªscCs.t|ƒj}|dkr*t|ƒ‚n|S(s÷ Lookup up the codec for the given encoding and return
        its IncrementalEncoder class or factory function.
 
        Raises a LookupError in case the encoding cannot be found
        or the codecs doesn't provide an incremental encoder.
 
    N(RR!R,t LookupError(R{tencoder((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pytgetincrementalencoder´s     cCs.t|ƒj}|dkr*t|ƒ‚n|S(s÷ Lookup up the codec for the given encoding and return
        its IncrementalDecoder class or factory function.
 
        Raises a LookupError in case the encoding cannot be found
        or the codecs doesn't provide an incremental decoder.
 
    N(RR"R,R•(R{tdecoder((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pytgetincrementaldecoderÂs     cCs t|ƒjS(s´ Lookup up the codec for the given encoding and return
        its StreamReader class or factory function.
 
        Raises a LookupError in case the encoding cannot be found.
 
    (RR$(R{((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyt    getreaderÐscCs t|ƒjS(s´ Lookup up the codec for the given encoding and return
        its StreamWriter class or factory function.
 
        Raises a LookupError in case the encoding cannot be found.
 
    (RR#(R{((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyt    getwriterÚscksgt|ƒ||}x+|D]#}|j|ƒ}|r|VqqW|jdtƒ}|rc|VndS(s¾
    Encoding iterator.
 
    Encodes the input strings from the iterator using a IncrementalEncoder.
 
    errors and kwargs are passed through to the IncrementalEncoder
    constructor.
    R4N(R—RR[(titeratorR{R1tkwargsR–R0toutput((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyt
iterencodeäs      cksgt|ƒ||}x+|D]#}|j|ƒ}|r|VqqW|jdtƒ}|rc|VndS(s¾
    Decoding iterator.
 
    Decodes the input strings from the iterator using a IncrementalDecoder.
 
    errors and kwargs are passed through to the IncrementalDecoder
    constructor.
    R4N(R™R R[(RœR{R1RR˜R0Rž((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyt
iterdecodeös      cCs%i}x|D]}|||<q W|S(sˆ make_identity_dict(rng) -> dict
 
        Return a dictionary where elements of the rng sequence are
        mapped to themselves.
 
    ((trngtresti((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pytmake_identity_dict
s cCsJi}x=|jƒD]/\}}||kr8|||<qd||<qW|S(s‚ Creates an encoding map from a decoding map.
 
        If a target mapping in the decoding map occurs multiple
        times, then that target is mapped to None (undefined mapping),
        causing an exception when encountered by the charmap codec
        during translation.
 
        One example where this happens is cp875.py which decodes
        multiple character to \u001a.
 
    N(titemsR,(t decoding_maptmtktv((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pytmake_encoding_maps   tignoreR‡txmlcharrefreplacetbackslashreplaceit__main__slatin-1sutf-8((((<R2R‰tsyst_codecst ImportErrortwhyt SystemErrort__all__R RRRRRRt    byteorderRR RR    RR R
RRR-RHR3R=RBRCRERWRuR|R,RRR“R”R—R™RšR›RŸR R¤RªRRRRRtbackslashreplace_errorsR•t_falset    encodingsR)tstdouttstdin(((sN/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/codecs.pyt<module>s„          
 
 
    
@(!1*IõWt1&