Spade

Mini Shell

Directory:~$ /proc/self/root/lib64/python2.7/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ //proc/self/root/lib64/python2.7/_pyio.pyo

�
q�fc@s�dZddlmZmZddlZddlZddlZddlZddlZyddl	m
ZWn!ek
r�ddl
m
ZnXddlZddlmZmZmZmZddlmZeZddZd	efd
��YZddeeeed�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((s/usr/lib64/python2.7/_pyio.pyR$s(t__name__t
__module__t__doc__R(((s/usr/lib64/python2.7/_pyio.pyR
surcCst|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((s/usr/lib64/python2.7/_pyio.pytopen+s�o(	/	$		t
DocDescriptorcBseZdZd�ZRS(u%Helper
for builtins.open.__doc__
    cCsdtjS(Nu\open(file, mode='r', buffering=-1,
encoding=None, errors=None, newline=None, closefd=True)

(R=R(Rtobjttyp((s/usr/lib64/python2.7/_pyio.pyt__get__�s(RRRRA(((s/usr/lib64/python2.7/_pyio.pyR>�stOpenWrappercBs
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((s/usr/lib64/python2.7/_pyio.pyt__new__�s(RRRR>RF(((s/usr/lib64/python2.7/_pyio.pyRB�s	tUnsupportedOperationcBseZRS((RR(((s/usr/lib64/python2.7/_pyio.pyRG�stIOBasecBs
eZejZd�Zdd�Zd�Zdd�Z	d�Z
eZ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((s/usr/lib64/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((s/usr/lib64/python2.7/_pyio.pytseek*s
cCs|jdd�S(uReturn
current stream
position.ii(RN(R((s/usr/lib64/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((s/usr/lib64/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((s/usr/lib64/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((s/usr/lib64/python2.7/_pyio.pytcloseQs	cCsy|j�WnnXdS(uDestructor.
 Calls
close().N(RT(R((s/usr/lib64/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((s/usr/lib64/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((s/usr/lib64/python2.7/_pyio.pyt_checkSeekablerscCstS(udReturn
whether object was opened for reading.

        If False, read() will raise IOError.
       
(R(R((s/usr/lib64/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((s/usr/lib64/python2.7/_pyio.pyt_checkReadable�scCstS(utReturn
whether object was opened for writing.

        If False, write() and truncate() will raise IOError.
       
(R(R((s/usr/lib64/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((s/usr/lib64/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((s/usr/lib64/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((s/usr/lib64/python2.7/_pyio.pyRQ�s	cCs|j�|S(u+Context
management protocol.  Returns
self.(RQ(R((s/usr/lib64/python2.7/_pyio.pyt	__enter__�s
cGs|j�dS(u+Context management protocol.  Calls
close()N(RT(RRD((s/usr/lib64/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((s/usr/lib64/python2.7/_pyio.pyR#�scCs|j�tS(uiReturn
whether this is an 'interactive' stream.

        Return False if it can't be determined.
        (RQR(R((s/usr/lib64/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(s/usr/lib64/python2.7/_pyio.pyt
nreadahead�scSsdS(Ni((((s/usr/lib64/python2.7/_pyio.pyRf�si����ulimit
must be an integeris
N(thasattrRRR
RRt	bytearrayRtreadtendswithtbytes(RReRftrestb((ReRs/usr/lib64/python2.7/_pyio.pytreadline�s

				!
cCs|j�|S(N(RQ(R((s/usr/lib64/python2.7/_pyio.pyt__iter__�s
cCs|j�}|st�n|S(N(Rnt
StopIteration(Rtline((s/usr/lib64/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((s/usr/lib64/python2.7/_pyio.pyt	readlines�s"


cCs,|j�x|D]}|j|�qWdS(N(RQtwrite(RRvRq((s/usr/lib64/python2.7/_pyio.pyt
writeliness

N(!RRtabctABCMetat
__metaclass__RKRNRORRPRRRRSRTRURVRXRYRZR[R\tpropertyR]RQR^R_R#RRnRoRrRwRy(((s/usr/lib64/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((s/usr/lib64/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((s/usr/lib64/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((s/usr/lib64/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((s/usr/lib64/python2.7/_pyio.pyRxDs(RRRRiRR�Rx(((s/usr/lib64/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((s/usr/lib64/python2.7/_pyio.pyRiascCs|jd�dS(u7Read
up to n bytes with at most one read() system
call.uread1N(RK(RRd((s/usr/lib64/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�((s/usr/lib64/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((s/usr/lib64/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((s/usr/lib64/python2.7/_pyio.pytdetach�sN(	RRRRRiR�R�RxR�(((s/usr/lib64/python2.7/_pyio.pyR�Ps		t_BufferedIOMixincBs�eZdZd�Zdd�Zd�Zdd�Zd�Zd�Z	d�Z
d	�Zd
�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((s/usr/lib64/python2.7/_pyio.pyR�sicCs4|jj||�}|dkr0td��n|S(Niu#seek()
returned an invalid position(R9RNR
(RRLRMtnew_position((s/usr/lib64/python2.7/_pyio.pyRN�scCs.|jj�}|dkr*td��n|S(Niu#tell()
returned an invalid position(R9ROR
(RRL((s/usr/lib64/python2.7/_pyio.pyRO�scCs5|j�|dkr%|j�}n|jj|�S(N(RRRROR9RP(RRL((s/usr/lib64/python2.7/_pyio.pyRP�s
cCs)|jrtd��n|jj�dS(Nuflush of closed
file(R]RR9RR(R((s/usr/lib64/python2.7/_pyio.pyRR�s	cCs?|jdk	r;|jr;z|j�Wd|jj�XndS(N(R9RR]RRRT(R((s/usr/lib64/python2.7/_pyio.pyRT�scCs>|jdkrtd��n|j�|j}d|_|S(Nuraw
stream already
detached(R9RRRRR�(RR9((s/usr/lib64/python2.7/_pyio.pyR��s
		cCs
|jj�S(N(R9RV(R((s/usr/lib64/python2.7/_pyio.pyRV�scCs
|jj�S(N(R9RY(R((s/usr/lib64/python2.7/_pyio.pyRY�scCs
|jj�S(N(R9R[(R((s/usr/lib64/python2.7/_pyio.pyR[�scCs|jS(N(R�(R((s/usr/lib64/python2.7/_pyio.pyR9�scCs
|jjS(N(R9R](R((s/usr/lib64/python2.7/_pyio.pyR]�scCs
|jjS(N(R9RJ(R((s/usr/lib64/python2.7/_pyio.pyRJ�scCs
|jjS(N(R9R+(R((s/usr/lib64/python2.7/_pyio.pyR+�scCsK|jj}y
|j}Wntk
r6dj|�SXdj||�SdS(Nu<_pyio.{0}>u<_pyio.{0}
name={1!r}>(RIRRJR&tformat(RtclsnameRJ((s/usr/lib64/python2.7/_pyio.pyt__repr__�s

cCs
|jj�S(N(R9R#(R((s/usr/lib64/python2.7/_pyio.pyR#
scCs
|jj�S(N(R9R(R((s/usr/lib64/python2.7/_pyio.pyR
sN(RRRRRNRORRPRRRTR�RVRYR[R}R9R]RJR+R�R#R(((s/usr/lib64/python2.7/_pyio.pyR��s$					
					tBytesIOcBs�eZdZdd�Zd�Zd�Zdd�Zd�Zd�Z	dd�Z
d	�Zdd
�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((s/usr/lib64/python2.7/_pyio.pyRs
		cCs%|jrtd��n|jj�S(Nu__getstate__ on closed
file(R]Rt__dict__tcopy(R((s/usr/lib64/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((s/usr/lib64/python2.7/_pyio.pytgetvalue!s	cCs�|jrtd��n|dkr-d}nt|ttf�s`tdjt|����n|dkr~t	|j
�}nt	|j
�|jkr�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((s/usr/lib64/python2.7/_pyio.pyRi(s				cCs
|j|�S(u"This
is the same as read.
       
(Ri(RRd((s/usr/lib64/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((s/usr/lib64/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((s/usr/lib64/python2.7/_pyio.pyRNPs
	
"cCs|jrtd��n|jS(Nutell
on closed
file(R]RR�(R((s/usr/lib64/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((s/usr/lib64/python2.7/_pyio.pyRPhs	

cCs|jrtd��ntS(NuI/O operation on closed
file.(R]RR(R((s/usr/lib64/python2.7/_pyio.pyRYws	cCs|jrtd��ntS(NuI/O
operation on closed
file.(R]RR(R((s/usr/lib64/python2.7/_pyio.pyR[|s	cCs|jrtd��ntS(NuI/O
operation on closed
file.(R]RR(R((s/usr/lib64/python2.7/_pyio.pyRV�s	N(RRRRRR�R�RiR�RxRNRORPRYR[RV(((s/usr/lib64/python2.7/_pyio.pyR�s							R)cBsqeZdZed�Zd�Zdd�Zdd�Zdd�Z	dd�Z
d�Zd	�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�RRtbuffer_sizet_reset_read_buftLockt
_read_lock(RR9R�((s/usr/lib64/python2.7/_pyio.pyR�s	
cCsd|_d|_dS(NR�i(t	_read_buft	_read_pos(R((s/usr/lib64/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((s/usr/lib64/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((s/usr/lib64/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((s/usr/lib64/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�((s/usr/lib64/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((s/usr/lib64/python2.7/_pyio.pyR�s

cCs!tj|�t|j�|jS(N(R�RORR�R�(R((s/usr/lib64/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((s/usr/lib64/python2.7/_pyio.pyRNs

N(RRRR
RR�RRiR�R`R�R�RORN(((s/usr/lib64/python2.7/_pyio.pyR)�s	
	
8
	
	R(cBs_eZdZdZed
d�Zd�Zd
d�Zd�Z	d�Z
d�Zdd	�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�RRRtwarningstwarntDeprecationWarningt_warning_stack_offsetR�Rht
_write_bufR�t_write_lock(RR9R�tmax_buffer_size((s/usr/lib64/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<tk
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((s/usr/lib64/python2.7/_pyio.pyRx8s(	


"cCsL|j�=|j�|dkr2|jj�}n|jj|�SWdQXdS(N(R�R�RR9RORP(RRL((s/usr/lib64/python2.7/_pyio.pyRPTs


cCs|j�|j�WdQXdS(N(R�R�(R((s/usr/lib64/python2.7/_pyio.pyRR[s
cCs�|jrtd��nx�|jr�y|jj|j�}WnGtk
r\td��n+tk
r�}|jt	kr�qqnX|dkr�ttjdd��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�((s/usr/lib64/python2.7/_pyio.pyR�_s$	
!cCstj|�t|j�S(N(R�RORR�(R((s/usr/lib64/python2.7/_pyio.pyROtsic	Cs\d|kodkns+td��n|j�"|j�tj|||�SWdQXdS(Niiuinvalid
whence(RR�R�R�RN(RRLRM((s/usr/lib64/python2.7/_pyio.pyRNws


N(
RRRR�R
RRRxRPRRR�RORN(((s/usr/lib64/python2.7/_pyio.pyR(s				tBufferedRWPaircBs�eZdZedd�Zdd�Zd�Zd�Zdd�Z	d�Z
d�Zd	�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�((s/usr/lib64/python2.7/_pyio.pyR�scCs%|dkrd}n|jj|�S(Ni����(RR�Ri(RRd((s/usr/lib64/python2.7/_pyio.pyRi�s	cCs|jj|�S(N(R�R�(RRm((s/usr/lib64/python2.7/_pyio.pyR��scCs|jj|�S(N(R�Rx(RRm((s/usr/lib64/python2.7/_pyio.pyRx�sicCs|jj|�S(N(R�R`(RRd((s/usr/lib64/python2.7/_pyio.pyR`�scCs|jj|�S(N(R�R�(RRd((s/usr/lib64/python2.7/_pyio.pyR��scCs
|jj�S(N(R�RY(R((s/usr/lib64/python2.7/_pyio.pyRY�scCs
|jj�S(N(R�R[(R((s/usr/lib64/python2.7/_pyio.pyR[�scCs
|jj�S(N(R�RR(R((s/usr/lib64/python2.7/_pyio.pyRR�scCs|jj�|jj�dS(N(R�RTR�(R((s/usr/lib64/python2.7/_pyio.pyRT�s
cCs|jj�p|jj�S(N(R�RR�(R((s/usr/lib64/python2.7/_pyio.pyR�scCs
|jjS(N(R�R](R((s/usr/lib64/python2.7/_pyio.pyR]�sN(RRRR
RRRiR�RxR`R�RYR[RRRTRR}R](((s/usr/lib64/python2.7/_pyio.pyR�s								R'cBsweZdZdZedd�Zdd�Zd�Zdd�Z	dd�Z
d�Zdd	�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)RR((RR9R�R�((s/usr/lib64/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((s/usr/lib64/python2.7/_pyio.pyRN�s
	
,
cCs'|jrtj|�Stj|�SdS(N(R�R(ROR)(R((s/usr/lib64/python2.7/_pyio.pyRO�s	
cCs+|dkr|j�}ntj||�S(N(RROR(RP(RRL((s/usr/lib64/python2.7/_pyio.pyRP�scCs/|dkrd}n|j�tj||�S(Ni����(RRRR)Ri(RRd((s/usr/lib64/python2.7/_pyio.pyRi�s	
cCs|j�tj||�S(N(RRR)R�(RRm((s/usr/lib64/python2.7/_pyio.pyR��s
cCs|j�tj||�S(N(RRR)R`(RRd((s/usr/lib64/python2.7/_pyio.pyR`�s
cCs|j�tj||�S(N(RRR)R�(RRd((s/usr/lib64/python2.7/_pyio.pyR�s
cCsY|jrI|j�2|jj|jt|j�d�|j�WdQXntj||�S(Ni(	R�R�R9RNR�RR�R(Rx(RRm((s/usr/lib64/python2.7/_pyio.pyRxs
	
#N(RRRR�R
RRRNRORPRiR�R`R�Rx(((s/usr/lib64/python2.7/_pyio.pyR'�s			t
TextIOBasecBsneZdZdd�Zd�Zd
d�Zd�Zd�Ze	d��Z
e	d��Ze	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((s/usr/lib64/python2.7/_pyio.pyRiscCs|jd�dS(uWrite
string s to
stream.uwriteN(RK(Rts((s/usr/lib64/python2.7/_pyio.pyRx!scCs|jd�dS(uTruncate
size to
pos.utruncateN(RK(RRL((s/usr/lib64/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((s/usr/lib64/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((s/usr/lib64/python2.7/_pyio.pyR�0scCsdS(uSubclasses
should
override.N(R(R((s/usr/lib64/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((s/usr/lib64/python2.7/_pyio.pytnewlines>scCsdS(uMError
setting of the decoder or encoder.

        Subclasses should
override.N(R(R((s/usr/lib64/python2.7/_pyio.pyR/HsN(
RRRRiRxRRPRnR�R}R.R�R/(((s/usr/lib64/python2.7/_pyio.pyR�s				
tIncrementalNewlineDecodercBsbeZdZdd�Zed�Zd�Zd�Zd�ZdZ	dZ
d	Ze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(tcodecstIncrementalDecoderRt	translatetdecodertseennlRt	pendingcr(RR�R�R/((s/usr/lib64/python2.7/_pyio.pyRYs
			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�|jBO_|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((s/usr/lib64/python2.7/_pyio.pyR�`s(	

+	cCs]|jdkrd}d}n|jj�\}}|dK}|jrS|dO}n||fS(NR�ii(R�RtgetstateR�(RR�tflag((s/usr/lib64/python2.7/_pyio.pyR�s	
	
cCsO|\}}t|d@�|_|jdk	rK|jj||d?f�ndS(Ni(tboolR�R�Rtsetstate(RtstateR�R�((s/usr/lib64/python2.7/_pyio.pyR��scCs5d|_t|_|jdk	r1|jj�ndS(Ni(R�RR�R�Rtreset(R((s/usr/lib64/python2.7/_pyio.pyR��s		iiic
Cs#ddddddddf|jS(Nu
u
u
(u
u
(u
u
(u
u
(u
u
u
(RR�(R((s/usr/lib64/python2.7/_pyio.pyR��s(RRRRRR�R�R�R�R�R�R�R}R�(((s/usr/lib64/python2.7/_pyio.pyR�Rs			R*cBs�eZdZdZd#d#d#ed�Zd�Zed��Z	ed��Z
ed��Zed��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�RtlocaletImportErrortgetpreferredencodingR�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�tLookupError(RR<R.R/R0R:R�tposition((s/usr/lib64/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((s/usr/lib64/python2.7/_pyio.pyR��s

cCs|jS(N(R�(R((s/usr/lib64/python2.7/_pyio.pyR.scCs|jS(N(R�(R((s/usr/lib64/python2.7/_pyio.pyR/scCs|jS(N(R�(R((s/usr/lib64/python2.7/_pyio.pyR:scCs|jS(N(R�(R((s/usr/lib64/python2.7/_pyio.pyR<scCs|jrtd��n|jS(NuI/O
operation on closed
file.(R]RR�(R((s/usr/lib64/python2.7/_pyio.pyRVs	cCs
|jj�S(N(R<RY(R((s/usr/lib64/python2.7/_pyio.pyRYscCs
|jj�S(N(R<R[(R((s/usr/lib64/python2.7/_pyio.pyR[scCs|jj�|j|_dS(N(R<RRR�R�(R((s/usr/lib64/python2.7/_pyio.pyRRs
cCs?|jdk	r;|jr;z|j�Wd|jj�XndS(N(R<RR]RRRT(R((s/usr/lib64/python2.7/_pyio.pyRT#scCs
|jjS(N(R<R](R((s/usr/lib64/python2.7/_pyio.pyR]*scCs
|jjS(N(R<RJ(R((s/usr/lib64/python2.7/_pyio.pyRJ.scCs
|jj�S(N(R<R#(R((s/usr/lib64/python2.7/_pyio.pyR#2scCs
|jj�S(N(R<R(R((s/usr/lib64/python2.7/_pyio.pyR5sc	Cs"|jrtd��nt|t�s@td|jj��nt|�}|js^|j	ogd|k}|r�|jr�|j
dkr�|jd|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((s/usr/lib64/python2.7/_pyio.pyRx8s$	
		cCs+tj|j�}||j�|_|jS(N(R�tgetincrementalencoderR�R�R�(Rtmake_encoder((s/usr/lib64/python2.7/_pyio.pyR�MscCsLtj|j�}||j�}|jr?t||j�}n||_|S(N(R�tgetincrementaldecoderR�R�R�R�R�R�(Rtmake_decoderR�((s/usr/lib64/python2.7/_pyio.pyt_get_decoderRs		cCs||_d|_dS(uSet
the _decoded_chars
buffer.iN(R�R�(Rtchars((s/usr/lib64/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((s/usr/lib64/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((s/usr/lib64/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_flagstinput_chunkteof((s/usr/lib64/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((s/usr/lib64/python2.7/_pyio.pyt_pack_cookie�scCsgt|d�\}}t|d�\}}t|d�\}}t|d�\}}|||||fS(Nii@llll(tdivmod(RtbiginttrestR�RRR
R((s/usr/lib64/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_inputRtsaved_statet	start_poststart_flagst	bytes_fedt
chars_decodedR
t	next_byteR((s/usr/lib64/python2.7/_pyio.pyRO�sN		
			



cCs5|j�|dkr%|j�}n|jj|�S(N(RRRROR<RP(RRL((s/usr/lib64/python2.7/_pyio.pyRP�s
cCs>|jdkrtd��n|j�|j}d|_|S(Nubuffer is
already
detached(R<RRRRR�(RR<((s/usr/lib64/python2.7/_pyio.pyR��s
		c	Cs�|jrtd��n|js0td��n|dkrl|dkrWtd��nd}|j�}n|dkr�|dkr�td��n|j�|jjdd�}|jd�d|_
|jr�|jj�n|S|dkrtd	|f��n|dkr)td
|f��n|j�|j
|�\}}}}}|jj|�|jd�d|_
|dkr�|jr�|jj�nU|js�|s�|r�|jp�|j�|_|jjd|f�|df|_
n|rd|jj|�}	|j|jj|	|��||	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�((s/usr/lib64/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
((s/usr/lib64/python2.7/_pyio.pyRi9s(
	
	
	
!cCs=t|_|j�}|s9d|_|j|_t�n|S(N(RR�RnRR�R�Rp(RRq((s/usr/lib64/python2.7/_pyio.pyRrRs			cCs�|jrtd��n|dkr-d}n$t|ttf�sQtd��n|j�}d}|jsy|j	�nd}}x�t
rH|jr�|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�RR�RR�R(RReRqtstartRLtendpostnlpostcrpos((s/usr/lib64/python2.7/_pyio.pyRn[sp			

		
	




		
		cCs|jr|jjSdS(N(R�R�R(R((s/usr/lib64/python2.7/_pyio.pyR��sN('RRRRRRRR�R}R.R/R:R<RVRYR[RRRTR]RJR#RRxR�R�RRRRRRRORPR�RNRiRrRnR�(((s/usr/lib64/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!RR�RRR�RR�RxRN(Rt
initial_valueR0((s/usr/lib64/python2.7/_pyio.pyR�s
cCs)|j�|jj�j|j|j�S(N(RRR<R�R�R�R�(R((s/usr/lib64/python2.7/_pyio.pyR��s
cCs
tj|�S(N(tobjectR�(R((s/usr/lib64/python2.7/_pyio.pyR��scCsdS(N(R(R((s/usr/lib64/python2.7/_pyio.pyR/�scCsdS(N(R(R((s/usr/lib64/python2.7/_pyio.pyR.�scCs|jd�dS(Nudetach(RK(R((s/usr/lib64/python2.7/_pyio.pyR��s(
RRRRR�R�R}R/R.R�(((s/usr/lib64/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!(((s/usr/lib64/python2.7/_pyio.pyt<module>sX
"
�	�
<
Tjv�aHI?U��