ronnie
2022-10-14 1504bb53e29d3d46222c0b3ea994fc494b48e153
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
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
K\¬Qc@sÐdZddlmZmZddlZddlZddlZddlZddlZyddl    m
Z Wn!e k
rddl m
Z nXddlZddlmZmZmZmZddlmZeZddZd    efd
„ƒYZd deeeed „Zd fd„ƒYZdfd„ƒYZdeefd„ƒYZdfd„ƒYZ ej j!e ƒde fd„ƒYZ"ej"j!e"ƒddl#m$Z$e"j!e$ƒde fd„ƒYZ%ej%j!e%ƒde%fd„ƒYZ&de%fd„ƒYZ'de&fd„ƒYZ(d e&fd!„ƒYZ)d"e%fd#„ƒYZ*d$e)e(fd%„ƒYZ+d&e fd'„ƒYZ,ej,j!e,ƒd(ej-fd)„ƒYZ.d*e,fd+„ƒYZ/d,e/fd-„ƒYZ0dS(.u)
Python implementation of the io module.
iÿÿÿÿ(tprint_functiontunicode_literalsN(t allocate_lock(t__all__tSEEK_SETtSEEK_CURtSEEK_END(tEINTRiitBlockingIOErrorcBseZdZdd„ZRS(uCException raised when I/O would block on a non-blocking I/O stream.icCsJtt|ƒj||ƒt|ttfƒs=tdƒ‚n||_dS(Nu$characters_written must be a integer(tsupertIOErrort__init__t
isinstancetinttlongt    TypeErrortcharacters_written(tselfterrnotstrerrorR((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR $s(t__name__t
__module__t__doc__R (((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR surcCs t|tttfƒs+td|ƒ‚nt|tƒsMtd|ƒ‚nt|ttfƒsutd|ƒ‚n|dk    r¤t|tƒ r¤td|ƒ‚n|dk    rÓt|tƒ rÓtd|ƒ‚nt|ƒ}|tdƒst|ƒt|ƒkrtd|ƒ‚nd|k}d|k}    d    |k}
d
|k} d |k} d |k} d |kr’|    sz|
r‰tdƒ‚nt    }n| r­| r­tdƒ‚n||    |
dkrÐtdƒ‚n|pß|    pß|
sñtdƒ‚n| r|dk    rtdƒ‚n| r3|dk    r3tdƒ‚n| rT|dk    rTtdƒ‚nt
||rfdpid|    rudpxd|
r…d    pˆd| r•d
p˜d|ƒ}t }|dksÌ|dkrÛ|j ƒrÛd}t    }n|dkr>t }ytj|jƒƒj}Wntjtfk
r%q>X|dkr>|}q>n|dkrYtdƒ‚n|dkr~| ro|Stdƒ‚n| r–t||ƒ}nF|    s¢|
r´t||ƒ}n(|rÌt||ƒ}ntd|ƒ‚| ræ|St|||||ƒ} || _| S(uöOpen file and return a stream.  Raise IOError upon failure.
 
    file is either a text or byte string giving the name (and the path
    if the file isn't in the current working directory) of the file to
    be opened or an integer file descriptor of the file to be
    wrapped. (If a file descriptor is given, it is closed when the
    returned I/O object is closed, unless closefd is set to False.)
 
    mode is an optional string that specifies the mode in which the file
    is opened. It defaults to 'r' which means open for reading in text
    mode.  Other common values are 'w' for writing (truncating the file if
    it already exists), and 'a' for appending (which on some Unix systems,
    means that all writes append to the end of the file regardless of the
    current seek position). In text mode, if encoding is not specified the
    encoding used is platform dependent. (For reading and writing raw
    bytes use binary mode and leave encoding unspecified.) The available
    modes are:
 
    ========= ===============================================================
    Character Meaning
    --------- ---------------------------------------------------------------
    'r'       open for reading (default)
    'w'       open for writing, truncating the file first
    'a'       open for writing, appending to the end of the file if it exists
    'b'       binary mode
    't'       text mode (default)
    '+'       open a disk file for updating (reading and writing)
    'U'       universal newline mode (for backwards compatibility; unneeded
              for new code)
    ========= ===============================================================
 
    The default mode is 'rt' (open for reading text). For binary random
    access, the mode 'w+b' opens and truncates the file to 0 bytes, while
    'r+b' opens the file without truncation.
 
    Python distinguishes between files opened in binary and text modes,
    even when the underlying operating system doesn't. Files opened in
    binary mode (appending 'b' to the mode argument) return contents as
    bytes objects without any decoding. In text mode (the default, or when
    't' is appended to the mode argument), the contents of the file are
    returned as strings, the bytes having been first decoded using a
    platform-dependent encoding or using the specified encoding if given.
 
    buffering is an optional integer used to set the buffering policy.
    Pass 0 to switch buffering off (only allowed in binary mode), 1 to select
    line buffering (only usable in text mode), and an integer > 1 to indicate
    the size of a fixed-size chunk buffer.  When no buffering argument is
    given, the default buffering policy works as follows:
 
    * Binary files are buffered in fixed-size chunks; the size of the buffer
      is chosen using a heuristic trying to determine the underlying device's
      "block size" and falling back on `io.DEFAULT_BUFFER_SIZE`.
      On many systems, the buffer will typically be 4096 or 8192 bytes long.
 
    * "Interactive" text files (files for which isatty() returns True)
      use line buffering.  Other text files use the policy described above
      for binary files.
 
    encoding is the name of the encoding used to decode or encode the
    file. This should only be used in text mode. The default encoding is
    platform dependent, but any encoding supported by Python can be
    passed.  See the codecs module for the list of supported encodings.
 
    errors is an optional string that specifies how encoding errors are to
    be handled---this argument should not be used in binary mode. Pass
    'strict' to raise a ValueError exception if there is an encoding error
    (the default of None has the same effect), or pass 'ignore' to ignore
    errors. (Note that ignoring encoding errors can lead to data loss.)
    See the documentation for codecs.register for a list of the permitted
    encoding error strings.
 
    newline controls how universal newlines works (it only applies to text
    mode). It can be None, '', '\n', '\r', and '\r\n'.  It works as
    follows:
 
    * On input, if newline is None, universal newlines mode is
      enabled. Lines in the input can end in '\n', '\r', or '\r\n', and
      these are translated into '\n' before being returned to the
      caller. If it is '', universal newline mode is enabled, but line
      endings are returned to the caller untranslated. If it has any of
      the other legal values, input lines are only terminated by the given
      string, and the line ending is returned to the caller untranslated.
 
    * On output, if newline is None, any '\n' characters written are
      translated to the system default line separator, os.linesep. If
      newline is '', no translation takes place. If newline is any of the
      other legal values, any '\n' characters written are translated to
      the given string.
 
    If closefd is False, the underlying file descriptor will be kept open
    when the file is closed. This does not work when a file name is given
    and must be True in that case.
 
    open() returns a file object whose type depends on the mode, and
    through which the standard file operations such as reading and writing
    are performed. When open() is used to open a file in a text mode ('w',
    'r', 'wt', 'rt', etc.), it returns a TextIOWrapper. When used to open
    a file in a binary mode, the returned class varies: in read binary
    mode, it returns a BufferedReader; in write binary and append binary
    modes, it returns a BufferedWriter, and in read/write mode, it returns
    a BufferedRandom.
 
    It is also possible to use a string or bytearray as a file for both
    reading and writing. For strings StringIO can be used like a file
    opened in a text mode, and for bytes a BytesIO can be used like a file
    opened in a binary mode.
    uinvalid file: %ruinvalid mode: %ruinvalid buffering: %ruinvalid encoding: %ruinvalid errors: %ruarwb+tUuruwuau+utubuUu$can't use U and writing mode at onceu'can't have text and binary mode at onceiu)can't have read/write/append mode at onceu/must have exactly one of read/write/append modeu-binary mode doesn't take an encoding argumentu+binary mode doesn't take an errors argumentu+binary mode doesn't take a newline argumentuiiÿÿÿÿuinvalid buffering sizeucan't have unbuffered text I/Ouunknown mode: %rN(R t
basestringR RRtNonetsettlent
ValueErrortTruetFileIOtFalsetisattytDEFAULT_BUFFER_SIZEtostfstattfilenot
st_blksizeterrortAttributeErrortBufferedRandomtBufferedWritertBufferedReadert TextIOWrappertmode(tfileR+t    bufferingtencodingterrorstnewlinetclosefdtmodestreadingtwritingt    appendingtupdatingttexttbinarytrawtline_bufferingtbstbuffer((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pytopen+sŠo (             /    $              t DocDescriptorcBseZdZd„ZRS(u%Helper for builtins.open.__doc__
    cCs dtjS(Nu\open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True)
 
(R=R(Rtobjttyp((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyt__get__ès(RRRRA(((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR>åst OpenWrappercBs eZdZeƒZd„ZRS(u¶Wrapper for builtins.open
 
    Trick so that open won't become a bound method when stored
    as a class variable (as dbm.dumb does).
 
    See initstdio() in Python/pythonrun.c.
    cOs t||ŽS(N(R=(tclstargstkwargs((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyt__new__øs(RRRR>RF(((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRBîs    tUnsupportedOperationcBseZRS((RR(((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRGüstIOBasecBs eZejZd„Zdd„Zd„Zdd„Z    d„Z
e Z d„Z d„Zd„Zdd    „Zd
„Zdd „Zd „Zdd „Zed„ƒZdd„Zd„Zd„Zd„Zd„Zdd„Zd„Zd„Zdd„Zd„Z RS(cCs td|jj|fƒ‚dS(u8Internal: raise an exception for unsupported operations.u%s.%s() not supportedN(RGt    __class__R(Rtname((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyt _unsupported#sicCs|jdƒdS(u¾Change stream position.
 
        Change the stream position to byte offset pos. Argument pos is
        interpreted relative to the position indicated by whence.  Values
        for whence are:
 
        * 0 -- start of stream (the default); offset should be zero or positive
        * 1 -- current stream position; offset may be negative
        * 2 -- end of stream; offset is usually negative
 
        Return the new absolute position.
        useekN(RK(Rtpostwhence((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pytseek*s cCs|jddƒS(uReturn current stream position.ii(RN(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyttell9scCs|jdƒdS(uŒTruncate file to size bytes.
 
        Size defaults to the current IO position as reported by tell().  Return
        the new size.
        utruncateN(RK(RRL((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyttruncate=scCs|jƒdS(uuFlush write buffers, if applicable.
 
        This is not implemented for read-only and non-blocking streams.
        N(t _checkClosed(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pytflushGscCs+|js'z|jƒWdt|_XndS(uiFlush and close the IO object.
 
        This method has no effect if the file is already closed.
        N(t_IOBase__closedRRR(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pytcloseQs    cCsy|jƒWnnXdS(uDestructor.  Calls close().N(RT(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyt__del__\scCstS(u­Return whether object supports random access.
 
        If False, seek(), tell() and truncate() will raise IOError.
        This method may need to do a test seek().
        (R(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pytseekablejscCs1|jƒs-t|dkr!dn|ƒ‚ndS(u;Internal: raise an IOError if file is not seekable
        uFile or stream is not seekable.N(RVR
R(Rtmsg((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyt_checkSeekablers cCstS(udReturn whether object was opened for reading.
 
        If False, read() will raise IOError.
        (R(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pytreadablezscCs1|jƒs-t|dkr!dn|ƒ‚ndS(u;Internal: raise an IOError if file is not readable
        uFile or stream is not readable.N(RYR
R(RRW((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyt_checkReadables cCstS(utReturn whether object was opened for writing.
 
        If False, write() and truncate() will raise IOError.
        (R(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pytwritableˆscCs1|jƒs-t|dkr!dn|ƒ‚ndS(u;Internal: raise an IOError if file is not writable
        uFile or stream is not writable.N(R[R
R(RRW((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyt_checkWritables cCs|jS(u…closed: bool.  True iff the file has been closed.
 
        For backwards compatibility, this is a property, not a predicate.
        (RS(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pytclosed–scCs.|jr*t|dkrdn|ƒ‚ndS(u8Internal: raise an ValueError if file is closed
        uI/O operation on closed file.N(R]RR(RRW((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRQžs    cCs|jƒ|S(u+Context management protocol.  Returns self.(RQ(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyt    __enter__§s
cGs|jƒdS(u+Context management protocol.  Calls close()N(RT(RRD((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyt__exit__¬scCs|jdƒdS(u‰Returns underlying file descriptor if one exists.
 
        An IOError is raised if the IO object does not use a file descriptor.
        ufilenoN(RK(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR#´scCs|jƒtS(uiReturn whether this is an 'interactive' stream.
 
        Return False if it can't be determined.
        (RQR(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR»s
iÿÿÿÿcs×tˆdƒr$‡‡fd†}n    d„}ˆdkrBd‰n$tˆttfƒsftdƒ‚ntƒ}x[ˆdkst|ƒˆkr̈j|ƒƒ}|s¬Pn||7}|j    dƒrrPqrqrWt
|ƒS(    u(Read and return a line from the stream.
 
        If limit is specified, at most limit bytes will be read.
 
        The line terminator is always b'\n' for binary files; for text
        files, the newlines argument to open can be used to select the line
        terminator(s) recognized.
        upeekcsZˆjdƒ}|sdS|jdƒdp5t|ƒ}ˆdkrVt|ˆƒ}n|S(Nis
i(tpeektfindRtmin(t    readaheadtn(tlimitR(sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyt
nreadaheadÐs cSsdS(Ni((((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRfÙsiÿÿÿÿulimit must be an integeris
N( thasattrRR R RRt    bytearrayRtreadtendswithtbytes(RReRftrestb((ReRsM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pytreadlineÅs 
                 !
cCs|jƒ|S(N(RQ(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyt__iter__és
cCs|jƒ}|st‚n|S(N(Rnt StopIteration(Rtline((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pytnextís     cCs¡|dk    r1t|ttfƒ r1tdƒ‚n|dksI|dkrSt|ƒSd}g}x;|D]3}|j|ƒ|t|ƒ7}||krfPqfqfW|S(uéReturn a list of lines from the stream.
 
        hint can be specified to control the number of lines read: no more
        lines will be read if the total size (in bytes/characters) of all
        lines so far exceeds hint.
        uinteger or None expectediN(RR R RRtlisttappendR(RthintRdtlinesRq((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyt    readlinesós"
   cCs,|jƒx|D]}|j|ƒqWdS(N(RQtwrite(RRvRq((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyt
writeliness
 N(!RRtabctABCMetat __metaclass__RKRNRORRPRRRRSRTRURVRXRYRZR[R\tpropertyR]RQR^R_R#RRnRoRrRwRy(((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRHs4    "         
                                              
$         t    RawIOBasecBs5eZdZdd„Zd„Zd„Zd„ZRS(uBase class for raw binary I/O.iÿÿÿÿcCsm|dkrd}n|dkr+|jƒSt|jƒƒ}|j|ƒ}|dkr\dS||3t|ƒS(u¡Read and return up to n bytes.
 
        Returns an empty bytes object on EOF, or None if the object is
        set not to block and has no data to read.
        iÿÿÿÿiN(RtreadallRht    __index__treadintoRk(RRdRm((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRis      
 cCsQtƒ}x-tr8|jtƒ}|s+Pn||7}q W|rIt|ƒS|SdS(u+Read until EOF, using multiple read() call.N(RhRRiR Rk(RRltdata((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR.s        
cCs|jdƒdS(u¦Read up to len(b) bytes into b.
 
        Returns number of bytes read (0 for EOF), or None if the object
        is set not to block and has no data to read.
        ureadintoN(RK(RRm((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR<scCs|jdƒdS(u~Write the given buffer to the IO stream.
 
        Returns the number of bytes written, which may be less than len(b).
        uwriteN(RK(RRm((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRxDs(RRRRiRRRx(((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR~s
         (RtBufferedIOBasecBsAeZdZdd„Zdd„Zd„Zd„Zd„ZRS(uBase class for buffered IO objects.
 
    The main difference with RawIOBase is that the read() method
    supports omitting the size argument, and does not have a default
    implementation that defers to readinto().
 
    In addition, read(), readinto() and write() may raise
    BlockingIOError if the underlying raw stream is in non-blocking
    mode and not ready; unlike their raw counterparts, they will never
    return None.
 
    A typical implementation should not inherit from a RawIOBase
    implementation, but wrap one.
    cCs|jdƒdS(u‹Read and return up to n bytes.
 
        If the argument is omitted, None, or negative, reads and
        returns all data until EOF.
 
        If the argument is positive, and the underlying raw stream is
        not 'interactive', multiple raw reads may be issued to satisfy
        the byte count (unless EOF is reached first).  But for
        interactive raw streams (XXX and for pipes?), at most one raw
        read will be issued, and a short result does not imply that
        EOF is imminent.
 
        Returns an empty bytes array on EOF.
 
        Raises BlockingIOError if the underlying raw stream has no
        data at the moment.
        ureadN(RK(RRd((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRiascCs|jdƒdS(u7Read up to n bytes with at most one read() system call.uread1N(RK(RRd((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pytread1uscCs†|jt|ƒƒ}t|ƒ}y|||*WnPtk
r}ddl}t||jƒsh|‚n|jd|ƒ||*nX|S(u=Read up to len(b) bytes into b.
 
        Like read(), this may issue multiple reads to the underlying raw
        stream, unless the latter is 'interactive'.
 
        Returns the number of bytes read (0 for EOF).
 
        Raises BlockingIOError if the underlying raw stream has no
        data at the moment.
        iÿÿÿÿNRm(RiRRtarrayR (RRmR‚RdterrR…((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRys       cCs|jdƒdS(u
Write the given buffer to the IO stream.
 
        Return the number of bytes written, which is never less than
        len(b).
 
        Raises BlockingIOError if the buffer is full and the
        underlying raw stream cannot accept more data at the moment.
        uwriteN(RK(RRm((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRxs    cCs|jdƒdS(u°
        Separate the underlying raw stream from the buffer and return it.
 
        After the raw stream has been detached, the buffer is in an unusable
        state.
        udetachN(RK(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pytdetach›sN(    RRRRRiR„RRxR‡(((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRƒPs            t_BufferedIOMixincBsÅeZdZd„Zdd„Zd„Zdd„Zd„Zd„Z    d„Z
d    „Z d
„Z d „Z ed „ƒZed „ƒZed„ƒZed„ƒZd„Zd„Zd„ZRS(uÝA mixin implementation of BufferedIOBase with an underlying raw stream.
 
    This passes most requests on to the underlying raw stream.  It
    does *not* provide implementations of read(), readinto() or
    write().
    cCs ||_dS(N(t_raw(RR9((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR °sicCs4|jj||ƒ}|dkr0tdƒ‚n|S(Niu#seek() returned an invalid position(R9RNR
(RRLRMt new_position((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRNµs cCs.|jjƒ}|dkr*tdƒ‚n|S(Niu#tell() returned an invalid position(R9ROR
(RRL((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRO»s cCs5|jƒ|dkr%|jƒ}n|jj|ƒS(N(RRRROR9RP(RRL((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRPÁs
 cCs)|jrtdƒ‚n|jjƒdS(Nuflush of closed file(R]RR9RR(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRRÏs    cCs?|jdk    r;|j r;z|jƒWd|jjƒXndS(N(R9RR]RRRT(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRTÔscCs>|jdkrtdƒ‚n|jƒ|j}d|_|S(Nuraw stream already detached(R9RRRRR‰(RR9((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR‡Üs 
        cCs |jjƒS(N(R9RV(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRVæscCs |jjƒS(N(R9RY(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRYéscCs |jjƒS(N(R9R[(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR[ìscCs|jS(N(R‰(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR9ïscCs
|jjS(N(R9R](R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR]óscCs
|jjS(N(R9RJ(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRJ÷scCs
|jjS(N(R9R+(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR+ûscCsK|jj}y |j}Wntk
r6dj|ƒSXdj||ƒSdS(Nu <_pyio.{0}>u<_pyio.{0} name={1!r}>(RIRRJR&tformat(RtclsnameRJ((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyt__repr__ÿs    cCs |jjƒS(N(R9R#(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR#
scCs |jjƒS(N(R9R(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR sN(RRRR RNRORRPRRRTR‡RVRYR[R}R9R]RJR+RR#R(((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRˆ§s$                      
                   tBytesIOcBs†eZdZdd„Zd„Zd„Zdd„Zd„Zd„Z    dd„Z
d    „Z dd
„Z d „Z d „Zd „ZRS(u<Buffered I/O implementation using an in-memory bytes buffer.cCs;tƒ}|dk    r%|j|ƒn||_d|_dS(Ni(RhRtextendt_buffert_pos(Rt initial_bytestbuf((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR s
         cCs%|jrtdƒ‚n|jjƒS(Nu__getstate__ on closed file(R]Rt__dict__tcopy(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyt __getstate__s    cCs%|jrtdƒ‚nt|jƒS(u8Return the bytes value (contents) of the buffer
        ugetvalue on closed file(R]RRkR(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pytgetvalue!s    cCsß|jrtdƒ‚n|dkr-d}nt|ttfƒs`tdjt|ƒƒƒ‚n|dkr~t    |j
ƒ}nt    |j
ƒ|j kršdSt t    |j
ƒ|j |ƒ}|j
|j |!}||_ t |ƒS(Nuread from closed fileiÿÿÿÿu$integer argument expected, got {0!r}it(R]RRR R RRR‹ttypeRRR‘RbRk(RRdtnewposRm((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRi(s                  cCs |j|ƒS(u"This is the same as read.
        (Ri(RRd((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR„9scCsÀ|jrtdƒ‚nt|tƒr6tdƒ‚nt|ƒ}|dkrRdS|j}|t|jƒkr™d|t|jƒ}|j|7_n||j|||+|j|7_|S(Nuwrite to closed fileu$can't write unicode to binary streamit(R]RR tunicodeRRR‘R(RRmRdRLtpadding((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRx>s          icCsæ|jrtdƒ‚ny |jWntk
rBtdƒ‚nX|dkr}|dkrqtd|fƒ‚n||_nb|dkr¥td|j|ƒ|_n:|dkrÓtdt|jƒ|ƒ|_n tdƒ‚|jS(Nuseek on closed fileuan integer is requirediunegative seek position %riiuinvalid whence value(    R]RR€R&RR‘tmaxRR(RRLRM((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRNPs            " cCs|jrtdƒ‚n|jS(Nutell on closed file(R]RR‘(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyROcs    cCs‹|jrtdƒ‚n|dkr0|j}nMy |jWntk
rZtdƒ‚nX|dkr}td|fƒ‚n|j|3|S(Nutruncate on closed fileuan integer is requirediunegative truncate position %r(R]RRR‘R€R&RR(RRL((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRPhs         
cCs|jrtdƒ‚ntS(NuI/O operation on closed file.(R]RR(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRYws    cCs|jrtdƒ‚ntS(NuI/O operation on closed file.(R]RR(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR[|s    cCs|jrtdƒ‚ntS(NuI/O operation on closed file.(R]RR(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRVs    N(RRRRR R–R—RiR„RxRNRORPRYR[RV(((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRŽs                                R)cBsqeZdZed„Zd„Zd d„Zd d„Zdd„Z    dd„Z
d„Z d    „Z dd
„Z RS( uBufferedReader(raw[, buffer_size])
 
    A buffer for a readable, sequential BaseRawIO object.
 
    The constructor creates a BufferedReader for the given readable raw
    stream and buffer_size. If buffer_size is omitted, DEFAULT_BUFFER_SIZE
    is used.
    cCsi|jƒstdƒ‚ntj||ƒ|dkrFtdƒ‚n||_|jƒtƒ|_dS(uMCreate a new buffered reader using the given readable raw IO object.
        u "raw" argument must be readable.iuinvalid buffer sizeN(    RYR
RˆR Rt buffer_sizet_reset_read_buftLockt
_read_lock(RR9RŸ((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR ’s      
cCsd|_d|_dS(NR˜i(t    _read_buft    _read_pos(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR Ÿs    cCsH|dk    r'|dkr'tdƒ‚n|j|j|ƒSWdQXdS(uöRead n bytes.
 
        Returns exactly n bytes of data unless the underlying raw IO
        stream reaches EOF or if the call would block in non-blocking
        mode. If n is negative, read until EOF or until read() would
        block.
        iÿÿÿÿuinvalid number of bytes to readN(RRR¢t_read_unlocked(RRd((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRi£s
c Csd}d}|j}|j}|dks6|dkrç|jƒ||g}d}x~trÓy|jjƒ}Wn+tk
rœ}    |    jt    krV‚qVqVnX||kr³|}Pn|t
|ƒ7}|j |ƒqVWdj |ƒpæ|St
|ƒ|}
||
kr!|j|7_||||!S||g}t |j|ƒ} x‡|
|krÉy|jj| ƒ}Wn+tk
r’}    |    jt    krC‚qCqCnX||kr©|}Pn|
t
|ƒ7}
|j |ƒqCWt||
ƒ}dj |ƒ} | ||_d|_| r | | S|S(NR˜iÿÿÿÿi(R˜N(RR£R¤R RR9RiR
RRRRttjoinRžRŸRb( RRdt
nodata_valt empty_valuesR“RLtchunkst current_sizetchunktetavailtwantedtout((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR¥°sX        
              icCs!|j|j|ƒSWdQXdS(uéReturns buffered bytes without advancing the position.
 
        The argument indicates a desired minimal number of bytes; we
        do at most one raw read to satisfy it.  We never return more
        than self.buffer_size.
        N(R¢t_peek_unlocked(RRd((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR`ès
cCsÙt||jƒ}t|jƒ|j}||ks@|dkrË|j|}xOtržy|jj|ƒ}Wn+tk
r™}|j    t
krP‚qPqPnXPqPW|rË|j|j||_d|_qËn|j|jS(Ni( RbRŸRR£R¤RR9RiR
RR(RRdtwantthavetto_readtcurrentR¬((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR°òs      c    Csr|dkrtdƒ‚n|dkr+dS|j8|jdƒ|jt|t|jƒ|jƒƒSWdQXdS(u9Reads up to n bytes, with at most one read() system call.iu(number of bytes to read must be positiveR˜iN(RR¢R°R¥RbRR£R¤(RRd((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR„s  
 cCs!tj|ƒt|jƒ|jS(N(RˆRORR£R¤(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyROsc    Cs‹d|kodkns+tdƒ‚n|jQ|dkr^|t|jƒ|j8}ntj|||ƒ}|jƒ|SWdQXdS(Niiuinvalid whence valuei(RR¢RR£R¤RˆRNR (RRLRM((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRNs
 
N(RRRR R R RRiR¥R`R°R„RORN(((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR)‡s         8
        R(cBs_eZdZdZed
d„Zd„Zd
d„Zd„Z    d„Z
d„Z dd    „Z RS( uÕA buffer for a writeable sequential RawIO object.
 
    The constructor creates a BufferedWriter for the given writeable raw
    stream. If the buffer_size is not given, it defaults to
    DEFAULT_BUFFER_SIZE.
    icCs|jƒstdƒ‚ntj||ƒ|dkrFtdƒ‚n|dk    rktjdt|j    ƒn||_
t ƒ|_ t ƒ|_dS(Nu "raw" argument must be writable.iuinvalid buffer sizeumax_buffer_size is deprecated(R[R
RˆR RRtwarningstwarntDeprecationWarningt_warning_stack_offsetRŸRht
_write_bufR¡t _write_lock(RR9RŸtmax_buffer_size((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR )s          c    CsJ|jrtdƒ‚nt|tƒr6tdƒ‚n|jt|jƒ|jkre|j    ƒnt|jƒ}|jj
|ƒt|jƒ|}t|jƒ|jkr<y|j    ƒWq<t k
r8}t|jƒ|jkr9t|jƒ|j}||8}|j|j |_t |j |j |ƒ‚q9q<Xn|SWdQXdS(Nuwrite to closed fileu$can't write unicode to binary stream(R]RR RœRRºRR¹RŸt_flush_unlockedRRRR(RRmtbeforetwrittenR¬toverage((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRx8s(    
 
"cCsL|j=|jƒ|dkr2|jjƒ}n|jj|ƒSWdQXdS(N(RºR¼RR9RORP(RRL((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRPTs
 
 
 cCs|j|jƒWdQXdS(N(RºR¼(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRR[s
cCsí|jrtdƒ‚nxÎ|jrèy|jj|jƒ}WnGtk
r\tdƒ‚n+tk
r†}|jt    kr‚qqnX|dkr«ttj ddƒ‚n|t |jƒksÌ|dkrÛtdƒ‚n|j|4qWdS(Nuflush of closed fileuHself.raw should implement RawIOBase: it should not raise BlockingIOErroru)write could not complete without blockingiu*write() returned incorrect number of bytes( R]RR¹R9RxRt RuntimeErrorR
RRRtEAGAINR(RRdR¬((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR¼_s$       !cCstj|ƒt|jƒS(N(RˆRORR¹(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyROtsic    Cs\d|kodkns+tdƒ‚n|j"|jƒtj|||ƒSWdQXdS(Niiuinvalid whence(RRºR¼RˆRN(RRLRM((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRNws
 
 
N( RRRR¸R RR RxRPRRR¼RORN(((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR(s                 tBufferedRWPaircBsŒeZdZedd„Zdd„Zd„Zd„Zdd„Z    d„Z
d„Z d    „Z d
„Z d „Zd „Zed „ƒZRS(u“A buffered reader and writer object together.
 
    A buffered reader object and buffered writer object put together to
    form a sequential IO object that can read and write. This is typically
    used with a socket or two-way pipe.
 
    reader and writer are RawIOBase objects that are readable and
    writeable respectively. If the buffer_size is omitted it defaults to
    DEFAULT_BUFFER_SIZE.
    cCs€|dk    r"tjdtdƒn|jƒs=tdƒ‚n|jƒsXtdƒ‚nt||ƒ|_t    ||ƒ|_
dS(uEConstructor.
 
        The arguments are two RawIO instances.
        umax_buffer_size is deprecatediu#"reader" argument must be readable.u#"writer" argument must be writable.N( RRµR¶R·RYR
R[R)treaderR(twriter(RRÃRÄRŸR»((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR s   cCs%|dkrd}n|jj|ƒS(Niÿÿÿÿ(RRÃRi(RRd((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRi¡s     cCs|jj|ƒS(N(RÃR(RRm((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR¦scCs|jj|ƒS(N(RÄRx(RRm((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRx©sicCs|jj|ƒS(N(RÃR`(RRd((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR`¬scCs|jj|ƒS(N(RÃR„(RRd((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR„¯scCs |jjƒS(N(RÃRY(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRY²scCs |jjƒS(N(RÄR[(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR[µscCs |jjƒS(N(RÄRR(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRR¸scCs|jjƒ|jjƒdS(N(RÄRTRÃ(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRT»s cCs|jjƒp|jjƒS(N(RÃRRÄ(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR¿scCs
|jjS(N(RÄR](R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR]ÂsN(RRRR RR RiRRxR`R„RYR[RRRTRR}R](((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRÂs                                   R'cBsweZdZdZed d„Zdd„Zd„Zd d„Z    d d„Z
d„Z dd    „Z d
„Z d „ZRS( uçA buffered interface to random access streams.
 
    The constructor creates a reader and writer for a seekable stream,
    raw, given in the first argument. If the buffer_size is omitted it
    defaults to DEFAULT_BUFFER_SIZE.
    icCs7|jƒtj|||ƒtj||||ƒdS(N(RXR)R R((RR9RŸR»((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR Òs
ic    CsÂd|kodkns+tdƒ‚n|jƒ|jrt|j(|jj|jt|jƒdƒWdQXn|jj||ƒ}|j|jƒWdQX|dkr¾t    dƒ‚n|S(Niiuinvalid whenceiu seek() returned invalid position(
RRRR£R¢R9RNR¤RR R
(RRLRM((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRNØs
    
,
 cCs'|jrtj|ƒStj|ƒSdS(N(R¹R(ROR)(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyROés     cCs+|dkr|jƒ}ntj||ƒS(N(RROR(RP(RRL((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRPïs cCs/|dkrd}n|jƒtj||ƒS(Niÿÿÿÿ(RRRR)Ri(RRd((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRiõs     
cCs|jƒtj||ƒS(N(RRR)R(RRm((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRûs
cCs|jƒtj||ƒS(N(RRR)R`(RRd((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR`ÿs
cCs|jƒtj||ƒS(N(RRR)R„(RRd((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR„s
cCsY|jrI|j2|jj|jt|jƒdƒ|jƒWdQXntj||ƒS(Ni(    R£R¢R9RNR¤RR R(Rx(RRm((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRxs
    
#N(RRRR¸R RR RNRORPRiRR`R„Rx(((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR'Çs                t
TextIOBasecBsneZdZdd„Zd„Zd
d„Zd„Zd„Ze    d„ƒZ
e    d„ƒZ e    d    „ƒZ RS( uàBase class for text I/O.
 
    This class provides a character and line based interface to stream
    I/O. There is no readinto method because Python's character strings
    are immutable. There is no public constructor.
    iÿÿÿÿcCs|jdƒdS(u³Read at most n characters from stream.
 
        Read from underlying buffer until we have n characters or we hit EOF.
        If n is negative or omitted, read until EOF.
        ureadN(RK(RRd((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRiscCs|jdƒdS(uWrite string s to stream.uwriteN(RK(Rts((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRx!scCs|jdƒdS(uTruncate size to pos.utruncateN(RK(RRL((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRP%scCs|jdƒdS(u_Read until newline or EOF.
 
        Returns an empty string if EOF is hit immediately.
        ureadlineN(RK(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRn)scCs|jdƒdS(u·
        Separate the underlying buffer from the TextIOBase and return it.
 
        After the underlying buffer has been detached, the TextIO is in an
        unusable state.
        udetachN(RK(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR‡0scCsdS(uSubclasses should override.N(R(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR.9scCsdS(u’Line endings translated so far.
 
        Only line endings translated during reading are considered.
 
        Subclasses should override.
        N(R(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pytnewlines>scCsdS(uMError setting of the decoder or encoder.
 
        Subclasses should override.N(R(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR/HsN( RRRRiRxRRPRnR‡R}R.RÇR/(((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRÅs                  
tIncrementalNewlineDecodercBsbeZdZdd„Zed„Zd„Zd„Zd„ZdZ    dZ
d    Z e d
„ƒZ RS( u+Codec used when reading a file in universal newlines mode.  It wraps
    another incremental decoder, translating \r\n and \r into \n.  It also
    records the types of newlines encountered.  When used with
    translate=False, it ensures that the newline sequence is returned in
    one piece.
    ustrictcCs>tjj|d|ƒ||_||_d|_t|_dS(NR/i(tcodecstIncrementalDecoderR t    translatetdecodertseennlRt    pendingcr(RRÌRËR/((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR Ys
            c
Cs4|jdkr|}n|jj|d|ƒ}|jr[|sE|r[d|}t|_n|jdƒr‡| r‡|d }t|_n|jdƒ}|jdƒ|}|jdƒ|}|j|oÏ|j    |oÛ|j
B|oè|j BO_|j r0|r|j ddƒ}n|r0|j ddƒ}q0n|S(Ntfinalu iÿÿÿÿu
u
(RÌRtdecodeRÎRRjRtcountRÍt_LFt_CRt_CRLFRËtreplace(RtinputRÏtoutputtcrlftcrtlf((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRÐ`s(    
 
 +    cCs]|jdkrd}d}n|jjƒ\}}|dK}|jrS|dO}n||fS(NR˜ii(RÌRtgetstateRÎ(RR“tflag((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRÛs    
     cCsO|\}}t|d@ƒ|_|jdk    rK|jj||d?fƒndS(Ni(tboolRÎRÌRtsetstate(RtstateR“RÜ((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRފs cCs5d|_t|_|jdk    r1|jjƒndS(Ni(RÍRRÎRÌRtreset(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRàs        iiic
Cs#ddddddddf|jS(Nu
u u
(u u
(u
u
(u u
(u u
u
(RRÍ(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRǚs(RRRR RRÐRÛRÞRàRÒRÓRÔR}RÇ(((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRÈRs              R*cBs…eZdZdZd#d#d#ed„Zd„Zed„ƒZ    ed„ƒZ
ed„ƒZ ed„ƒZ d„Z d    „Zd
„Zd „Zd „Zed „ƒZed„ƒZd„Zd„Zd„Zd„Zd„Zd„Zd#d„Zd„Zd„Zddddd„Zd„Zd„Zd#d„Z d„Z!dd„Z"d#d„Z#d „Z$d#d!„Z%ed"„ƒZ&RS($uþCharacter and line based layer over a BufferedIOBase object, buffer.
 
    encoding gives the name of the encoding that the stream will be
    decoded or encoded with. It defaults to locale.getpreferredencoding.
 
    errors determines the strictness of encoding and decoding (see the
    codecs.register) and defaults to "strict".
 
    newline can be None, '', '\n', '\r', or '\r\n'.  It controls the
    handling of line endings. If it is None, universal newlines is
    enabled.  With this enabled, on input, the lines endings '\n', '\r',
    or '\r\n' are translated to '\n' before being returned to the
    caller. Conversely, on output, '\n' is translated to the system
    default line separator, os.linesep. If newline is any other of its
    legal values, that newline becomes the newline when the file is read
    and it is returned untranslated. On output, '\n' is converted to the
    newline.
 
    If line_buffering is True, a call to flush is implied when a call to
    write contains a newline character.
    icCs
|dk    r8t|tƒ r8tdt|ƒfƒ‚n|d krZtd|fƒ‚n|dkrŸyddl}Wntk
rd}qŸX|jƒ}nt|tƒsÁtd    |ƒ‚n|dkrÖd
}n"t|tƒsøtd |ƒ‚n||_    ||_
||_ ||_ | |_ |dk|_||_|dk|_|pYtj|_d|_d|_d|_d |_d|_|jjƒ|_|_|jr|jƒr|jjƒ}|d kry|jƒj d ƒWqt!k
rÿqXqndS(Nuillegal newline type: %ruu
u u
uillegal newline value: %riÿÿÿÿuasciiuinvalid encoding: %rustrictuinvalid errors: %ri(Nuu
u u
("RR RRR™Rtlocalet ImportErrortgetpreferredencodingRt_line_bufferingt    _encodingt_errorst_readuniversalt_readtranslatet_readnlt_writetranslateR!tlinesept_writenlt_encodert_decodert_decoded_charst_decoded_chars_usedt    _snapshotR<RVt    _seekablet_tellingR[ROt _get_encoderRÞt LookupError(RR<R.R/R0R:Rátposition((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR ÁsL   
                     
                          cCsEy |j}Wntk
r-dj|jƒSXdj||jƒSdS(Nu$<_pyio.TextIOWrapper encoding='{0}'>u/<_pyio.TextIOWrapper name={0!r} encoding='{1}'>(RJR&R‹R.(RRJ((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRûs   cCs|jS(N(Rå(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR.scCs|jS(N(Ræ(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR/scCs|jS(N(Rä(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR: scCs|jS(N(R(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR<scCs|jrtdƒ‚n|jS(NuI/O operation on closed file.(R]RRò(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRVs    cCs |jjƒS(N(R<RY(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRYscCs |jjƒS(N(R<R[(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR[scCs|jjƒ|j|_dS(N(R<RRRòRó(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRRs cCs?|jdk    r;|j r;z|jƒWd|jjƒXndS(N(R<RR]RRRT(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRT#scCs
|jjS(N(R<R](R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR]*scCs
|jjS(N(R<RJ(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRJ.scCs |jjƒS(N(R<R#(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR#2scCs |jjƒS(N(R<R(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR5sc    Cs"|jrtdƒ‚nt|tƒs@td|jjƒ‚nt|ƒ}|js^|j    ogd|k}|r |jr |j
dkr |j d|j
ƒ}n|j p²|j ƒ}|j|ƒ}|jj|ƒ|j    rü|sïd|krü|jƒnd|_|jr|jjƒn|S(Nuwrite to closed fileucan't write %s to text streamu
u (R]RR RœRRIRRRêRäRìRÕRíRôtencodeR<RxRRRRñRîRà(RRÆtlengththaslftencoderRm((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRx8s$              cCs+tj|jƒ}||jƒ|_|jS(N(RÉtgetincrementalencoderRåRæRí(Rt make_encoder((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRôMscCsLtj|jƒ}||jƒ}|jr?t||jƒ}n||_|S(N(RÉtgetincrementaldecoderRåRæRçRÈRèRî(Rt make_decoderRÌ((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyt _get_decoderRs         cCs||_d|_dS(uSet the _decoded_chars buffer.iN(RïRð(Rtchars((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyt_set_decoded_chars]s    cCsR|j}|dkr%|j|}n|j|||!}|jt|ƒ7_|S(u'Advance into the _decoded_chars buffer.N(RðRRïR(RRdtoffsetR((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyt_get_decoded_charsbs      cCs1|j|krtdƒ‚n|j|8_dS(u!Rewind the _decoded_chars buffer.u"rewind decoded_chars out of boundsN(RðtAssertionError(RRd((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyt_rewind_decoded_charslscCs›|jdkrtdƒ‚n|jr?|jjƒ\}}n|jj|jƒ}| }|j|jj    ||ƒƒ|jr–|||f|_
n| S(uQ
        Read and decode the next chunk of data from the BufferedReader.
        u
no decoderN( RîRRRóRÛR<R„t _CHUNK_SIZERRÐRñ(Rt
dec_buffert    dec_flagst input_chunkteof((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyt _read_chunkrs         icCs*||d>B|d>B|d>Bt|ƒd>BS(Ni@i€iÀi(RÝ(RRöRt bytes_to_feedtneed_eoft chars_to_skip((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyt _pack_cookie”scCsgt|dƒ\}}t|dƒ\}}t|dƒ\}}t|dƒ\}}|||||fS(Nii@llll(tdivmod(RtbiginttrestRöRR R R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyt_unpack_cookiežs
cCs|jstdƒ‚n|js0tdƒ‚n|jƒ|jjƒ}|j}|dksm|jdkr‰|j    r…t
dƒ‚n|S|j\}}|t |ƒ8}|j }|dkrÍ|j ||ƒS|jƒ}z$|jd|fƒ|}|dd}}    }
d} xÑ|D]‰} |    d7}    |
t |j| ƒƒ7}
|jƒ\} }| r|
|kr||    7}||
8}|dd}}    }
n|
|krPqqW|
t |jddtƒƒ7}
d} |
|krãtdƒ‚n|j |||    | |ƒSWd|j|ƒXdS(    Nu!underlying stream is not seekableu(telling position disabled by next() callupending decoded textiR˜iRÏu'can't reconstruct logical file position(RòR
RóRRR<RORîRRñRïRRRðRRÛRÞRÐR(RRöRÌRt
next_inputRt saved_statet    start_post start_flagst    bytes_fedt chars_decodedR t    next_byteR((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRO¥sN        
               
 
 
  cCs5|jƒ|dkr%|jƒ}n|jj|ƒS(N(RRRROR<RP(RRL((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRPãs
 cCs>|jdkrtdƒ‚n|jƒ|j}d|_|S(Nubuffer is already detached(R<RRRRR(RR<((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR‡és 
        c    Cs»|jrtdƒ‚n|js0tdƒ‚n|dkrl|dkrWtdƒ‚nd}|jƒ}n|dkrå|dkr“tdƒ‚n|jƒ|jjddƒ}|jdƒd|_
|j rá|j j ƒn|S|dkrtd    |fƒ‚n|dkr)td
|fƒ‚n|jƒ|j |ƒ\}}}}}|jj|ƒ|jdƒd|_
|dkrœ|j rœ|j j ƒnU|j s±|s±|rñ|j pÃ|jƒ|_ |j jd |fƒ|d f|_
n|rd|jj|ƒ}    |j|j j|    |ƒƒ||    f|_
t|jƒ|krXtd ƒ‚n||_ny|jpy|jƒ}
Wntk
rn'X|dkr­|
jdƒn
|
j ƒ|S( Nutell on closed fileu!underlying stream is not seekableiiu#can't do nonzero cur-relative seeksiu#can't do nonzero end-relative seeksuu(invalid whence (%r, should be 0, 1 or 2)unegative seek position %rR˜u#can't restore logical file position(R]RRòR
RORRR<RNRRRñRîRàRRÿRÞRiRÐRRïRðRíRôRõ( RtcookieRMRöRRR R RR    Rú((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRNñsf            
           
        
cCs|jƒ|dkrd}n|jp1|jƒ}y |jWntk
r^tdƒ‚nX|dkr­|jƒ|j|j    j
ƒdt ƒ}|j dƒd|_ |St}|j|ƒ}xGt|ƒ|kr | r |jƒ }||j|t|ƒƒ7}qÅW|SdS(Niÿÿÿÿuan integer is requirediRÏu(RZRRîRÿR€R&RRRÐR<RiRRRñRRR (RRdRÌtresultR
((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRi9s(
                  !cCs=t|_|jƒ}|s9d|_|j|_t‚n|S(N(RRóRnRRñRòRp(RRq((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRrRs              cCs‰|jrtdƒ‚n|dkr-d}n$t|ttfƒsQtdƒ‚n|jƒ}d}|jsy|j    ƒnd}}xÃt
rH|j rÐ|j d|ƒ}|dkrÁ|d}PqÇt |ƒ}n÷|jr’|j d|ƒ}|j d|ƒ}|dkr2|dkr$t |ƒ}q|d}PqÇ|dkrL|d}PqÇ||krf|d}PqÇ||dkr„|d}PqÇ|d}Pn5|j |jƒ}|dkrÇ|t |jƒ}Pn|dkrït |ƒ|krï|}Pnx|jƒr|jròPqòqòW|jr+||jƒ7}q†|jd    ƒd|_|Sq†W|dkrj||krj|}n|jt |ƒ|ƒ|| S(
Nuread from closed fileiÿÿÿÿulimit must be an integeriu
iu iu(R]RRR R RRRRîRÿRRèRaRRçRéR RïRRñR(RReRqtstartRLtendpostnlpostcrpos((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRn[sp               
         
      
 
 
 
 
                  cCs|jr|jjSdS(N(RîRÇR(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRdzsN('RRRRRRR RR}R.R/R:R<RVRYR[RRRTR]RJR#RRxRôRÿRRRR RRRORPR‡RNRiRrRnRÇ(((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR*§sH     9                                                    
       "            >      H          XtStringIOcBsVeZdZddd„Zd„Zd„Zed„ƒZed„ƒZd„Z    RS(    u»Text I/O implementation using an in-memory buffer.
 
    The initial_value argument sets the value of object.  The newline
    argument is like the one of TextIOWrapper's constructor.
    uu
cCsˆtt|ƒjtƒddddd|ƒ|dkrCt|_n|r„t|tƒsgt|ƒ}n|j    |ƒ|j
dƒndS(NR.uutf-8R/ustrictR0i( R    R!R RŽRRRêR RœRxRN(Rt initial_valueR0((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR ¿s   cCs)|jƒ|jjƒj|j|jƒS(N(RRR<R—RÐRåRæ(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR—Îs
cCs tj|ƒS(N(tobjectR(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyRÒscCsdS(N(R(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR/×scCsdS(N(R(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR.ÛscCs|jdƒdS(Nudetach(RK(R((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR‡ßs(
RRRR R—RR}R/R.R‡(((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyR!¸s        (1Rt
__future__RRR!RzRÉRµRtthreadRR¡Rât dummy_threadtioRRRRRR™R|R R
RRRR=R>RBRRGRHtregisterR~t_ioRRƒRˆRŽR)R(RÂR'RÅRÊRÈR*R!(((sM/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/_pyio.pyt<module>sX       "
 ¸    ÿ < Tjv—aHI?Uÿÿ