AlkantarClanX12

Your IP : 3.138.134.221


Current Path : /opt/alt/python33/lib64/python3.3/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/__pycache__/_pyio.cpython-33.pyo

�
��f�c@s�dZddlZddlZddlZddlZyddlmZWn"ek
rnddl	mZYnXddl
Z
ddl
mZmZm
Z
mZdddhZeed�r�ejej�ejej�ndd	ZeZd
deeeeedd�ZGd
d�d�ZGdd�d�Zy
e
jZWn+ek
rpGdd�dee�ZYnXGdd�ddej�Z e
j j!e �Gdd�de �Z"e
j"j!e"�ddl#m$Z$e"j!e$�Gdd�de �Z%e
j%j!e%�Gdd�de%�Z&Gdd�de%�Z'Gdd �d e&�Z(Gd!d"�d"e&�Z)Gd#d$�d$e%�Z*Gd%d&�d&e)e(�Z+Gd'd(�d(e �Z,e
j,j!e,�Gd)d*�d*ej-�Z.Gd+d,�d,e,�Z/Gd-d.�d.e/�Z0dS(/u)
Python implementation of the io module.
iN(u
allocate_lock(u__all__uSEEK_SETuSEEK_CURuSEEK_ENDiiu	SEEK_HOLEiiurc(Cs>t|tttf�s+td|��nt|t�sMtd|��nt|t�sotd|��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
|k}d|kr�|	s�|s�|r�td��nd}
n|r�|r�td��n|	|
||dkr�td��n|	p�|
p�|p�|std��n|r(|dk	r(td��n|rI|dk	rItd��n|rj|dk	rjtd��nt
||	r|dpd|
r�dp�d|r�d	p�d|r�d
p�d|
r�dp�d|d|�}d}|dks�|dkr|j�rd }d}n|dkrkt
}ytj|j��j}Wntjtfk
rRYqkX|dkrk|}qkn|dkr�td��n|dkr�|r�|Std��n|
r�t||�}nL|	s�|s�|r�t||�}n(|
r�t||�}ntd|��|r|St|||||�}||_|S(!uOpen 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), 'x' for exclusive creation of a new file, 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
    'x'       create a new file and open it for writing
    '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. The 'x' mode implies 'w' and
    raises an `FileExistsError` if the file already exists.

    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 str 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 is a string controlling 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.

    closedfd is a bool. 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.

    A custom opener can be used by passing a callable as *opener*. The
    underlying file descriptor for the file object is then obtained by calling
    *opener* with (*file*, *flags*). *opener* must return an open file
    descriptor (passing os.open as *opener* results in functionality similar to
    passing None).

    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: %ruaxrwb+tUuxuruwuau+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 argumentuuopeneriuinvalid buffering sizeucan't have unbuffered text I/Ouunknown mode: %rNTFi����(u
isinstanceustrubytesuintu	TypeErroruNoneusetulenu
ValueErroruTrueuFileIOuFalseuisattyuDEFAULT_BUFFER_SIZEuosufstatufilenou
st_blksizeuerroruAttributeErroruBufferedRandomuBufferedWriteruBufferedReaderu
TextIOWrapperumode(ufileumodeu	bufferinguencodinguerrorsunewlineuclosefduopenerumodesucreatingureadinguwritingu	appendinguupdatingutextubinaryurawuline_bufferingubsubuffer((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuopen"s�v(	?$		uopencBs&|EeZdZdZdd�ZdS(u
DocDescriptoru%Helper for builtins.open.__doc__
    cCsdtjS(Nu\open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True)

(uopenu__doc__(uselfuobjutyp((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu__get__�suDocDescriptor.__get__N(u__name__u
__module__u__qualname__u__doc__u__get__(u
__locals__((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu
DocDescriptor�su
DocDescriptorcBs/|EeZdZdZe�Zdd�ZdS(uOpenWrapperu�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(uopen(uclsuargsukwargs((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu__new__�suOpenWrapper.__new__N(u__name__u
__module__u__qualname__u__doc__u
DocDescriptoru__new__(u
__locals__((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuOpenWrapper�s	uOpenWrappercBs|EeZdZdS(uUnsupportedOperationN(u__name__u
__module__u__qualname__(u
__locals__((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuUnsupportedOperationsuUnsupportedOperationcBs^|EeZdZdZdd�Zddd�Zdd�Zd4d	d
�Zdd�Z	d5Zd
d�Zdd�Z
dd�Zd4dd�Zdd�Zd4dd�Zdd�Zd4dd�Zedd��Zd4dd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�Zd6d*d+�Zd,d-�Zd.d/�Zd4d0d1�Zd2d3�Zd4S(7uIOBaseu-The abstract base class for all I/O classes, acting on streams of
    bytes. There is no public constructor.

    This class provides dummy implementations for many methods that
    derived classes can override selectively; the default implementations
    represent a file that cannot be read, written or seeked.

    Even though IOBase does not declare read, readinto, or write because
    their signatures will vary, implementations and clients should
    consider those methods part of the interface. Also, implementations
    may raise UnsupportedOperation when operations they do not support are
    called.

    The basic type used for binary data read from or written to a file is
    bytes. bytearrays are accepted too, and in some cases (such as
    readinto) needed. Text I/O classes work with str data.

    Note that calling any method (even inquiries) on a closed stream is
    undefined. Implementations may raise IOError in this case.

    IOBase (and its subclasses) support the iterator protocol, meaning
    that an IOBase object can be iterated over yielding the lines in a
    stream.

    IOBase also supports the :keyword:`with` statement. In this example,
    fp is closed after the suite of the with statement is complete:

    with open('spam.txt', 'r') as fp:
        fp.write('Spam and eggs!')
    cCs td|jj|f��dS(u@Internal: raise an IOError exception for unsupported operations.u%s.%s() not supportedN(uUnsupportedOperationu	__class__u__name__(uselfuname((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu_unsupported(suIOBase._unsupportedicCs|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 ints:

        * 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
        Some operating systems / file systems could provide additional values.

        Return an int indicating the new absolute position.
        useekN(u_unsupported(uselfuposuwhence((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuseek/suIOBase.seekcCs|jdd�S(u5Return an int indicating the current stream position.ii(useek(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyutell?suIOBase.tellcCs|jd�dS(u�Truncate file to size bytes.

        Size defaults to the current IO position as reported by tell().  Return
        the new size.
        utruncateN(u_unsupported(uselfupos((u*/opt/alt/python33/lib64/python3.3/_pyio.pyutruncateCsuIOBase.truncatecCs|j�dS(uuFlush write buffers, if applicable.

        This is not implemented for read-only and non-blocking streams.
        N(u_checkClosed(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuflushMsuIOBase.flushcCs+|js'z|j�Wdd|_XndS(uiFlush and close the IO object.

        This method has no effect if the file is already closed.
        NT(u_IOBase__closeduflushuTrue(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyucloseWs	uIOBase.closec	Csy|j�WnYnXdS(uDestructor.  Calls close().N(uclose(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu__del__bsuIOBase.__del__cCsdS(u�Return a bool indicating whether object supports random access.

        If False, seek(), tell() and truncate() will raise UnsupportedOperation.
        This method may need to do a test seek().
        F(uFalse(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuseekablepsuIOBase.seekablecCs1|j�s-t|dkr!dn|��ndS(uEInternal: raise UnsupportedOperation if file is not seekable
        uFile or stream is not seekable.N(useekableuUnsupportedOperationuNone(uselfumsg((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu_checkSeekablexsuIOBase._checkSeekablecCsdS(u�Return a bool indicating whether object was opened for reading.

        If False, read() will raise UnsupportedOperation.
        F(uFalse(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyureadablesuIOBase.readablecCs1|j�s-t|dkr!dn|��ndS(uEInternal: raise UnsupportedOperation if file is not readable
        uFile or stream is not readable.N(ureadableuUnsupportedOperationuNone(uselfumsg((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu_checkReadable�suIOBase._checkReadablecCsdS(u�Return a bool indicating whether object was opened for writing.

        If False, write() and truncate() will raise UnsupportedOperation.
        F(uFalse(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuwritable�suIOBase.writablecCs1|j�s-t|dkr!dn|��ndS(uEInternal: raise UnsupportedOperation if file is not writable
        uFile or stream is not writable.N(uwritableuUnsupportedOperationuNone(uselfumsg((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu_checkWritable�suIOBase._checkWritablecCs|jS(u�closed: bool.  True iff the file has been closed.

        For backwards compatibility, this is a property, not a predicate.
        (u_IOBase__closed(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuclosed�su
IOBase.closedcCs.|jr*t|dkrdn|��ndS(u8Internal: raise an ValueError if file is closed
        uI/O operation on closed file.N(uclosedu
ValueErroruNone(uselfumsg((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu_checkClosed�s	uIOBase._checkClosedcCs|j�|S(uCContext management protocol.  Returns self (an instance of IOBase).(u_checkClosed(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu	__enter__�s
uIOBase.__enter__cGs|j�dS(u+Context management protocol.  Calls close()N(uclose(uselfuargs((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu__exit__�suIOBase.__exit__cCs|jd�dS(u�Returns underlying file descriptor (an int) if one exists.

        An IOError is raised if the IO object does not use a file descriptor.
        ufilenoN(u_unsupported(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyufileno�su
IOBase.filenocCs|j�dS(u{Return a bool indicating whether this is an 'interactive' stream.

        Return False if it can't be determined.
        F(u_checkCloseduFalse(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuisatty�s
u
IOBase.isattyics�t�d�r'��fdd�}ndd�}�d	krHd
�nt�t�sftd��nt�}x[�dks�t|��kr��j|��}|s�Pn||7}|jd�rrPqrqrWt	|�S(uQRead and return a line of bytes from the stream.

        If limit is specified, at most limit bytes will be read.
        Limit should be an int.

        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(upeekufindulenumin(u	readaheadun(ulimituself(u*/opt/alt/python33/lib64/python3.3/_pyio.pyu
nreadahead�su#IOBase.readline.<locals>.nreadaheadcSsdS(Ni((((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu
nreadahead�siulimit must be an integeris
Ni����(
uhasattruNoneu
isinstanceuintu	TypeErroru	bytearrayulenureaduendswithubytes(uselfulimitu
nreadaheaduresub((ulimituselfu*/opt/alt/python33/lib64/python3.3/_pyio.pyureadline�s 			!
uIOBase.readlinecCs|j�|S(N(u_checkClosed(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu__iter__�s
uIOBase.__iter__cCs|j�}|st�n|S(N(ureadlineu
StopIteration(uselfuline((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu__next__�s	uIOBase.__next__cCsp|dks|dkr"t|�Sd}g}x;|D]3}|j|�|t|�7}||kr5Pq5q5W|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.
        iN(uNoneulistuappendulen(uselfuhintunulinesuline((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu	readlines�s


uIOBase.readlinescCs,|j�x|D]}|j|�qWdS(N(u_checkCloseduwrite(uselfulinesuline((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu
writeliness

uIOBase.writelinesNFi����( u__name__u
__module__u__qualname__u__doc__u_unsupporteduseekutelluNoneutruncateuflushuFalseu_IOBase__closeducloseu__del__useekableu_checkSeekableureadableu_checkReadableuwritableu_checkWritableupropertyuclosedu_checkClosedu	__enter__u__exit__ufilenouisattyureadlineu__iter__u__next__u	readlinesu
writelines(u
__locals__((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuIOBases4
	
%uIOBaseu	metaclasscBsM|EeZdZdZddd�Zdd�Zdd�Zd	d
�ZdS(
u	RawIOBaseuBase class for raw binary I/O.icCss|dkrd}n|dkr+|j�St|j��}|j|�}|dkr\dS||d�=t|�S(u�Read and return up to n bytes, where n is an int.

        Returns an empty bytes object on EOF, or None if the object is
        set not to block and has no data to read.
        iiNi����(uNoneureadallu	bytearrayu	__index__ureadintoubytes(uselfunub((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuread!s	

uRawIOBase.readcCsJt�}x&|jt�}|s%Pn||7}q|rBt|�S|SdS(u+Read until EOF, using multiple read() call.N(u	bytearrayureaduDEFAULT_BUFFER_SIZEubytes(uselfuresudata((u*/opt/alt/python33/lib64/python3.3/_pyio.pyureadall2s	

uRawIOBase.readallcCs|jd�dS(u�Read up to len(b) bytes into bytearray b.

        Returns an int representing the number of bytes read (0 for EOF), or
        None if the object is set not to block and has no data to read.
        ureadintoN(u_unsupported(uselfub((u*/opt/alt/python33/lib64/python3.3/_pyio.pyureadinto@suRawIOBase.readintocCs|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(u_unsupported(uselfub((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuwriteHsuRawIOBase.writeNi����(u__name__u
__module__u__qualname__u__doc__ureadureadallureadintouwrite(u
__locals__((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu	RawIOBases
u	RawIOBase(uFileIOcBs\|EeZdZdZddd�Zddd�Zdd�Zdd	�Zd
d�Z	dS(
uBufferedIOBaseuBase 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, where n is an int.

        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(u_unsupported(uselfun((u*/opt/alt/python33/lib64/python3.3/_pyio.pyureadesuBufferedIOBase.readcCs|jd�dS(u[Read up to n bytes with at most one read() system call,
        where n is an int.
        uread1N(u_unsupported(uselfun((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuread1ysuBufferedIOBase.read1cCs�|jt|��}t|�}y||d|�<Wnhtk
r�}zHddl}t||j�sq|�n|jd|�|d|�<WYdd}~XnX|S(u[Read up to len(b) bytes into bytearray b.

        Like read(), this may issue multiple reads to the underlying raw
        stream, unless the latter is 'interactive'.

        Returns an int representing the number of bytes read (0 for EOF).

        Raises BlockingIOError if the underlying raw stream has no
        data at the moment.
        Niub(ureadulenu	TypeErroruarrayu
isinstance(uselfubudataunuerruarray((u*/opt/alt/python33/lib64/python3.3/_pyio.pyureadintos	/uBufferedIOBase.readintocCs|jd�dS(uWrite the given bytes 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(u_unsupported(uselfub((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuwrite�s	uBufferedIOBase.writecCs|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(u_unsupported(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyudetach�suBufferedIOBase.detachN(
u__name__u
__module__u__qualname__u__doc__uNoneureaduread1ureadintouwriteudetach(u
__locals__((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuBufferedIOBaseTsuBufferedIOBasecBs|EeZdZdZdd�Zddd�Zdd�Zd'd	d
�Zdd�Z	d
d�Z
dd�Zdd�Zdd�Z
dd�Zedd��Zedd��Zedd��Zedd��Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'S((u_BufferedIOMixinu�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(u_raw(uselfuraw((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu__init__�su_BufferedIOMixin.__init__icCs4|jj||�}|dkr0td��n|S(Niu#seek() returned an invalid position(urawuseekuIOError(uselfuposuwhenceunew_position((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuseek�su_BufferedIOMixin.seekcCs.|jj�}|dkr*td��n|S(Niu#tell() returned an invalid position(urawutelluIOError(uselfupos((u*/opt/alt/python33/lib64/python3.3/_pyio.pyutell�su_BufferedIOMixin.tellcCs5|j�|dkr%|j�}n|jj|�S(N(uflushuNoneutellurawutruncate(uselfupos((u*/opt/alt/python33/lib64/python3.3/_pyio.pyutruncate�s
u_BufferedIOMixin.truncatecCs)|jrtd��n|jj�dS(Nuflush of closed file(uclosedu
ValueErrorurawuflush(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuflush�s	u_BufferedIOMixin.flushcCs?|jdk	r;|jr;z|j�Wd|jj�XndS(N(urawuNoneucloseduflushuclose(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuclose�su_BufferedIOMixin.closecCs>|jdkrtd��n|j�|j}d|_|S(Nuraw stream already detached(urawuNoneu
ValueErroruflushu_raw(uselfuraw((u*/opt/alt/python33/lib64/python3.3/_pyio.pyudetach�s
		u_BufferedIOMixin.detachcCs
|jj�S(N(urawuseekable(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuseekable�su_BufferedIOMixin.seekablecCs
|jj�S(N(urawureadable(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyureadable�su_BufferedIOMixin.readablecCs
|jj�S(N(urawuwritable(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuwritable�su_BufferedIOMixin.writablecCs|jS(N(u_raw(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuraw�su_BufferedIOMixin.rawcCs
|jjS(N(urawuclosed(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuclosed�su_BufferedIOMixin.closedcCs
|jjS(N(urawuname(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuname�su_BufferedIOMixin.namecCs
|jjS(N(urawumode(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyumodesu_BufferedIOMixin.modecCstdj|jj���dS(Nu can not serialize a '{0}' object(u	TypeErroruformatu	__class__u__name__(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu__getstate__s	u_BufferedIOMixin.__getstate__cCsO|jj}y
|j}Wntk
r:dj|�SYnXdj||�SdS(Nu<_pyio.{0}>u<_pyio.{0} name={1!r}>(u	__class__u__name__unameuAttributeErroruformat(uselfuclsnameuname((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu__repr__	s

u_BufferedIOMixin.__repr__cCs
|jj�S(N(urawufileno(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyufilenosu_BufferedIOMixin.filenocCs
|jj�S(N(urawuisatty(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuisattysu_BufferedIOMixin.isattyN(u__name__u
__module__u__qualname__u__doc__u__init__useekutelluNoneutruncateuflushucloseudetachuseekableureadableuwritableupropertyurawuclosedunameumodeu__getstate__u__repr__ufilenouisatty(u
__locals__((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu_BufferedIOMixin�s&
u_BufferedIOMixincBs�|EeZdZdZddd�Zdd�Zdd�Zdd	�Zdd
d�Z	dd
�Z
dd�Zddd�Zdd�Z
ddd�Zdd�Zdd�Zdd�ZdS(uBytesIOu<Buffered I/O implementation using an in-memory bytes buffer.cCs8t�}|dk	r"||7}n||_d|_dS(Ni(u	bytearrayuNoneu_bufferu_pos(uselfu
initial_bytesubuf((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu__init__s
	
	uBytesIO.__init__cCs%|jrtd��n|jj�S(Nu__getstate__ on closed file(uclosedu
ValueErroru__dict__ucopy(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu__getstate__&s	uBytesIO.__getstate__cCs%|jrtd��nt|j�S(u8Return the bytes value (contents) of the buffer
        ugetvalue on closed file(uclosedu
ValueErrorubytesu_buffer(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyugetvalue+s	uBytesIO.getvaluecCs
t|j�S(u;Return a readable and writable view of the buffer.
        (u
memoryviewu_buffer(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu	getbuffer2suBytesIO.getbuffercCs�|jrtd��n|dkr-d}n|dkrKt|j�}nt|j�|jkrgdStt|j�|j|�}|j|j|�}||_t|�S(Nuread from closed fileiisi����(uclosedu
ValueErroruNoneulenu_bufferu_posuminubytes(uselfununewposub((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuread7s			uBytesIO.readcCs
|j|�S(u"This is the same as read.
        (uread(uselfun((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuread1Esu
BytesIO.read1cCs�|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 str to binary streamis(uclosedu
ValueErroru
isinstanceustru	TypeErrorulenu_posu_buffer(uselfubunuposupadding((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuwriteJs		u
BytesIO.writeicCs�|jrtd��ny|jWn4tk
rY}ztd�|�WYdd}~XnX|dkr�|dkr�td|f��n||_nb|dkr�td|j|�|_n:|dkr�tdt|j�|�|_ntd��|jS(Nuseek on closed fileuan integer is requirediunegative seek position %riiuunsupported whence value(	uclosedu
ValueErroru	__index__uAttributeErroru	TypeErroru_posumaxulenu_buffer(uselfuposuwhenceuerr((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuseek\s 	""uBytesIO.seekcCs|jrtd��n|jS(Nutell on closed file(uclosedu
ValueErroru_pos(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyutellos	uBytesIO.tellcCs�|jrtd��n|dkr0|j}ndy|jWn4tk
rq}ztd�|�WYdd}~XnX|dkr�td|f��n|j|d�=|S(Nutruncate on closed fileuan integer is requirediunegative truncate position %r(uclosedu
ValueErroruNoneu_posu	__index__uAttributeErroru	TypeErroru_buffer(uselfuposuerr((u*/opt/alt/python33/lib64/python3.3/_pyio.pyutruncatets	"uBytesIO.truncatecCs|jrtd��ndS(NuI/O operation on closed file.T(uclosedu
ValueErroruTrue(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyureadable�s	uBytesIO.readablecCs|jrtd��ndS(NuI/O operation on closed file.T(uclosedu
ValueErroruTrue(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuwritable�s	uBytesIO.writablecCs|jrtd��ndS(NuI/O operation on closed file.T(uclosedu
ValueErroruTrue(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuseekable�s	uBytesIO.seekableN(u__name__u
__module__u__qualname__u__doc__uNoneu__init__u__getstate__ugetvalueu	getbufferureaduread1uwriteuseekutellutruncateureadableuwritableuseekable(u
__locals__((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuBytesIOsuBytesIOcBs�|EeZdZdZedd�Zdd�Zddd�Zddd	�Z	d
dd�Z
d
d
d�Zdd�Zdd�Z
d
dd�ZdS(uBufferedReaderuBufferedReader(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(	ureadableuIOErroru_BufferedIOMixinu__init__u
ValueErrorubuffer_sizeu_reset_read_bufuLocku
_read_lock(uselfurawubuffer_size((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu__init__�s	
uBufferedReader.__init__cCsd|_d|_dS(Nsi(u	_read_bufu	_read_pos(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu_reset_read_buf�s	uBufferedReader._reset_read_bufc
CsH|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.
        iuinvalid number of bytes to readNi����(uNoneu
ValueErroru
_read_locku_read_unlocked(uselfun((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuread�s
uBufferedReader.readcCsNd}d}|j}|j}|dks6|dkr&|j�t|jd�r�|jj�}|dkr�||d�p�dS||d�|Sn||d�g}d}xay|jj�}Wntk
r�w�YnX||kr�|}Pn|t	|�7}|j
|�q�dj|�p%|St	|�|}	||	krc|j|7_||||�S||d�g}t|j
|�}
xq|	|kr�y|jj|
�}Wntk
r�w�YnX||kr�|}Pn|	t	|�7}	|j
|�q�Wt||	�}dj|�}||d�|_d|_|rJ|d|�S|S(Nsiureadalli(sNi����(uNoneu	_read_bufu	_read_posu_reset_read_bufuhasattrurawureadallureaduInterruptedErrorulenuappendujoinumaxubuffer_sizeumin(uselfunu
nodata_valuempty_valuesubufuposuchunkuchunksucurrent_sizeuavailuwanteduout((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu_read_unlocked�sZ		


	uBufferedReader._read_unlockedic	Cs!|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(u
_read_locku_peek_unlocked(uselfun((u*/opt/alt/python33/lib64/python3.3/_pyio.pyupeek�s
uBufferedReader.peekcCs�t||j�}t|j�|j}||ks@|dkr�|j|}x2y|jj|�}Wntk
r}wPYnXPqP|r�|j|jd�||_d|_q�n|j|jd�S(Ni(uminubuffer_sizeulenu	_read_bufu	_read_posurawureaduInterruptedError(uselfunuwantuhaveuto_readucurrent((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu_peek_unlockeds

uBufferedReader._peek_unlockedc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 positivesiN(u
ValueErroru
_read_locku_peek_unlockedu_read_unlockeduminulenu	_read_bufu	_read_pos(uselfun((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuread1s

uBufferedReader.read1cCs!tj|�t|j�|jS(N(u_BufferedIOMixinutellulenu	_read_bufu	_read_pos(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyutellsuBufferedReader.tellcCs{|tkrtd��n|j�Q|dkrN|t|j�|j8}ntj|||�}|j�|SWdQXdS(Nuinvalid whence valuei(	uvalid_seek_flagsu
ValueErroru
_read_lockulenu	_read_bufu	_read_posu_BufferedIOMixinuseeku_reset_read_buf(uselfuposuwhence((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuseek s

uBufferedReader.seekN(u__name__u
__module__u__qualname__u__doc__uDEFAULT_BUFFER_SIZEu__init__u_reset_read_bufuNoneureadu_read_unlockedupeeku_peek_unlockeduread1utelluseek(u
__locals__((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuBufferedReader�s	

:

uBufferedReadercBsw|EeZdZdZedd�Zdd�Zddd�Zdd	�Z	d
d�Z
dd
�Zddd�ZdS(uBufferedWriteru�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.
    cCsk|j�std��ntj||�|dkrFtd��n||_t�|_t�|_	dS(Nu "raw" argument must be writable.iuinvalid buffer size(
uwritableuIOErroru_BufferedIOMixinu__init__u
ValueErrorubuffer_sizeu	bytearrayu
_write_bufuLocku_write_lock(uselfurawubuffer_size((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu__init__3s	uBufferedWriter.__init__cCsb|jrtd��nt|t�r6td��n|j�t|j�|jkre|j	�nt|j�}|jj
|�t|j�|}t|j�|jkrTy|j	�WqTtk
rP}zqt|j�|jkr>t|j�|j}||8}|jd|j�|_t|j|j
|��nWYdd}~XqTXn|SWdQXdS(Nuwrite to closed fileu can't write str to binary stream(uclosedu
ValueErroru
isinstanceustru	TypeErroru_write_lockulenu
_write_bufubuffer_sizeu_flush_unlockeduextenduBlockingIOErroruerrnoustrerror(uselfububeforeuwrittenueuoverage((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuwrite>s(	


1uBufferedWriter.writec	CsL|j�=|j�|dkr2|jj�}n|jj|�SWdQXdS(N(u_write_locku_flush_unlockeduNoneurawutellutruncate(uselfupos((u*/opt/alt/python33/lib64/python3.3/_pyio.pyutruncateZs


uBufferedWriter.truncatecCs|j�|j�WdQXdS(N(u_write_locku_flush_unlocked(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuflushas
uBufferedWriter.flushcCs�|jrtd��nx�|jr�y|jj|j�}Wn2tk
rTwYntk
rqtd��YnX|dkr�tt	j
dd��n|t|j�ks�|dkr�td��n|jd|�=qWdS(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(
uclosedu
ValueErroru
_write_bufurawuwriteuInterruptedErroruBlockingIOErroruRuntimeErroruNoneuerrnouEAGAINulenuIOError(uselfun((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu_flush_unlockedes 	

!uBufferedWriter._flush_unlockedcCstj|�t|j�S(N(u_BufferedIOMixinutellulenu
_write_buf(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyutellxsuBufferedWriter.tellicCsL|tkrtd��n|j�"|j�tj|||�SWdQXdS(Nuinvalid whence value(uvalid_seek_flagsu
ValueErroru_write_locku_flush_unlockedu_BufferedIOMixinuseek(uselfuposuwhence((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuseek{s


uBufferedWriter.seekN(
u__name__u
__module__u__qualname__u__doc__uDEFAULT_BUFFER_SIZEu__init__uwriteuNoneutruncateuflushu_flush_unlockedutelluseek(u
__locals__((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuBufferedWriter*suBufferedWritercBs�|EeZdZdZedd�Zddd�Zdd�Zdd	�Z	d
dd�Z
d
d�Zdd�Zdd�Z
dd�Zdd�Zdd�Zedd��ZdS(uBufferedRWPairu�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^|j�std��n|j�s6td��nt||�|_t||�|_dS(uEConstructor.

        The arguments are two RawIO instances.
        u#"reader" argument must be readable.u#"writer" argument must be writable.N(ureadableuIOErroruwritableuBufferedReaderureaderuBufferedWriteruwriter(uselfureaderuwriterubuffer_size((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu__init__�suBufferedRWPair.__init__cCs%|dkrd}n|jj|�S(Nii����(uNoneureaderuread(uselfun((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuread�s	uBufferedRWPair.readcCs|jj|�S(N(ureaderureadinto(uselfub((u*/opt/alt/python33/lib64/python3.3/_pyio.pyureadinto�suBufferedRWPair.readintocCs|jj|�S(N(uwriteruwrite(uselfub((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuwrite�suBufferedRWPair.writeicCs|jj|�S(N(ureaderupeek(uselfun((u*/opt/alt/python33/lib64/python3.3/_pyio.pyupeek�suBufferedRWPair.peekcCs|jj|�S(N(ureaderuread1(uselfun((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuread1�suBufferedRWPair.read1cCs
|jj�S(N(ureaderureadable(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyureadable�suBufferedRWPair.readablecCs
|jj�S(N(uwriteruwritable(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuwritable�suBufferedRWPair.writablecCs
|jj�S(N(uwriteruflush(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuflush�suBufferedRWPair.flushcCs|jj�|jj�dS(N(uwriterucloseureader(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuclose�s
uBufferedRWPair.closecCs|jj�p|jj�S(N(ureaderuisattyuwriter(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuisatty�suBufferedRWPair.isattycCs
|jjS(N(uwriteruclosed(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuclosed�suBufferedRWPair.closedN(u__name__u
__module__u__qualname__u__doc__uDEFAULT_BUFFER_SIZEu__init__uNoneureadureadintouwriteupeekuread1ureadableuwritableuflushucloseuisattyupropertyuclosed(u
__locals__((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuBufferedRWPair�suBufferedRWPaircBs�|EeZdZdZedd�Zddd�Zdd�Zdd	d
�Z	ddd�Z
d
d�Zddd�Zdd�Z
dd�ZdS(uBufferedRandomu�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.
    cCs4|j�tj|||�tj|||�dS(N(u_checkSeekableuBufferedReaderu__init__uBufferedWriter(uselfurawubuffer_size((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu__init__�s
uBufferedRandom.__init__icCs�|tkrtd��n|j�|jrd|j�(|jj|jt|j�d�WdQXn|jj||�}|j�|j	�WdQX|dkr�t
d��n|S(Nuinvalid whence valueiiu seek() returned invalid position(uvalid_seek_flagsu
ValueErroruflushu	_read_bufu
_read_lockurawuseeku	_read_posulenu_reset_read_bufuIOError(uselfuposuwhence((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuseek�s
	
,
uBufferedRandom.seekcCs'|jrtj|�Stj|�SdS(N(u
_write_bufuBufferedWriterutelluBufferedReader(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyutell�s	
uBufferedRandom.tellcCs+|dkr|j�}ntj||�S(N(uNoneutelluBufferedWriterutruncate(uselfupos((u*/opt/alt/python33/lib64/python3.3/_pyio.pyutruncate�suBufferedRandom.truncatecCs/|dkrd}n|j�tj||�S(Nii����(uNoneuflushuBufferedReaderuread(uselfun((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuread�s	
uBufferedRandom.readcCs|j�tj||�S(N(uflushuBufferedReaderureadinto(uselfub((u*/opt/alt/python33/lib64/python3.3/_pyio.pyureadinto�s
uBufferedRandom.readintocCs|j�tj||�S(N(uflushuBufferedReaderupeek(uselfun((u*/opt/alt/python33/lib64/python3.3/_pyio.pyupeek�s
uBufferedRandom.peekcCs|j�tj||�S(N(uflushuBufferedReaderuread1(uselfun((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuread1s
uBufferedRandom.read1cCsY|jrI|j�2|jj|jt|j�d�|j�WdQXntj||�S(Ni(	u	_read_bufu
_read_lockurawuseeku	_read_posulenu_reset_read_bufuBufferedWriteruwrite(uselfub((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuwrites
	
#uBufferedRandom.writeN(u__name__u
__module__u__qualname__u__doc__uDEFAULT_BUFFER_SIZEu__init__useekutelluNoneutruncateureadureadintoupeekuread1uwrite(u
__locals__((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuBufferedRandom�suBufferedRandomcBs�|EeZdZdZddd�Zdd�Zddd�Zd	d
�Zdd�Z	e
d
d��Ze
dd��Ze
dd��Z
dS(u
TextIOBaseu�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.
    icCs|jd�dS(u�Read at most n characters from stream, where n is an int.

        Read from underlying buffer until we have n characters or we hit EOF.
        If n is negative or omitted, read until EOF.

        Returns a string.
        ureadN(u_unsupported(uselfun((u*/opt/alt/python33/lib64/python3.3/_pyio.pyureadsuTextIOBase.readcCs|jd�dS(u.Write string s to stream and returning an int.uwriteN(u_unsupported(uselfus((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuwrite suTextIOBase.writecCs|jd�dS(u*Truncate size to pos, where pos is an int.utruncateN(u_unsupported(uselfupos((u*/opt/alt/python33/lib64/python3.3/_pyio.pyutruncate$suTextIOBase.truncatecCs|jd�dS(u_Read until newline or EOF.

        Returns an empty string if EOF is hit immediately.
        ureadlineN(u_unsupported(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyureadline(suTextIOBase.readlinecCs|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(u_unsupported(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyudetach/suTextIOBase.detachcCsdS(uSubclasses should override.N(uNone(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuencoding8suTextIOBase.encodingcCsdS(u�Line endings translated so far.

        Only line endings translated during reading are considered.

        Subclasses should override.
        N(uNone(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyunewlines=suTextIOBase.newlinescCsdS(uMError setting of the decoder or encoder.

        Subclasses should override.N(uNone(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuerrorsGsuTextIOBase.errorsNi����(u__name__u
__module__u__qualname__u__doc__ureaduwriteuNoneutruncateureadlineudetachupropertyuencodingunewlinesuerrors(u
__locals__((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu
TextIOBase
s
	
u
TextIOBasecBs�|EeZdZdZddd�Zddd�Zdd�Zd	d
�Zdd�Z	d
Z
dZdZe
dd��ZdS(uIncrementalNewlineDecoderu+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|_d|_dS(NuerrorsiF(ucodecsuIncrementalDecoderu__init__u	translateudecoderuseennluFalseu	pendingcr(uselfudecoderu	translateuerrors((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu__init__Xs
			u"IncrementalNewlineDecoder.__init__c
Cs:|jdkr|}n|jj|d|�}|jr[|sE|r[d|}d|_n|jd�r�|r�|dd�}d|_n|jd�}|jd�|}|jd�|}|j|o�|j	|o�|j
B|o�|jBO_|jr6|r|j
dd�}n|r6|j
dd�}q6n|S(	Nufinalu
iu
u
Fi����T(udecoderuNoneudecodeu	pendingcruFalseuendswithuTrueucountuseennlu_LFu_CRu_CRLFu	translateureplace(uselfuinputufinaluoutputucrlfucrulf((u*/opt/alt/python33/lib64/python3.3/_pyio.pyudecode_s(	
+	u IncrementalNewlineDecoder.decodecCs]|jdkrd}d}n|jj�\}}|dK}|jrS|dO}n||fS(Nsii(udecoderuNoneugetstateu	pendingcr(uselfubufuflag((u*/opt/alt/python33/lib64/python3.3/_pyio.pyugetstate~s	
	
u"IncrementalNewlineDecoder.getstatecCsO|\}}t|d@�|_|jdk	rK|jj||d?f�ndS(Ni(uboolu	pendingcrudecoderuNoneusetstate(uselfustateubufuflag((u*/opt/alt/python33/lib64/python3.3/_pyio.pyusetstate�su"IncrementalNewlineDecoder.setstatecCs5d|_d|_|jdk	r1|jj�ndS(NiF(useennluFalseu	pendingcrudecoderuNoneureset(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyureset�s		uIncrementalNewlineDecoder.resetiiic
Csd|jS(	Nu
u
u
(u
u
(u
u
(u
u
(u
u
u
(Nu
u
(u
u
u
(u
u
(u
u
(u
u
u
(uNoneuseennl(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyunewlines�su"IncrementalNewlineDecoder.newlinesNF(u__name__u
__module__u__qualname__u__doc__u__init__uFalseudecodeugetstateusetstateuresetu_LFu_CRu_CRLFupropertyunewlines(u
__locals__((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuIncrementalNewlineDecoderQsuIncrementalNewlineDecodercBs�|EeZdZdZdZdDdDdDdEdEdd�Zdd�Ze	dd��Z
e	d	d
��Ze	dd��Ze	d
d��Z
dd�Zdd�Zdd�Zdd�Zdd�Ze	dd��Ze	dd��Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�ZdDd)d*�Zd+d,�Zd-d.�Zd/d/d/d/d0d1�Zd2d3�Zd4d5�Z dDd6d7�Z!d8d9�Z"d/d:d;�Z#dDd<d=�Z$d>d?�Z%dDd@dA�Z&e	dBdC��Z'dDS(Fu
TextIOWrapperuCharacter 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(False).

    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.
    ic
Cs�|dk	r8t|t�r8tdt|�f��n|dkrZtd|f��n|dkr�ytj|j��}Wnt	t
fk
r�YnX|dkr�yddl}Wntk
r�d}Yq�X|j
d�}q�nt|t�std	|��ntj|�js3d
}t||��n|dkrHd}n"t|t�sjtd|��n||_||_||_||_||_|dk|_||_|dk|_|p�tj|_d|_d|_d|_d|_ d|_!|j"j#�|_$|_%t&|j"d
�|_'d|_(|j$r�|j)�r�|j"j*�}	|	dkr�y|j+�j,d�Wq�tk
r�Yq�Xq�ndS(Nuillegal newline type: %ruu
u
u
uillegal newline value: %riuasciiuinvalid encoding: %ruG%r is not a text encoding; use codecs.open() to handle arbitrary codecsustrictuinvalid errors: %ruread1g(Nuu
u
u
F(-uNoneu
isinstanceustru	TypeErrorutypeu
ValueErroruosudevice_encodingufilenouAttributeErroruUnsupportedOperationulocaleuImportErrorugetpreferredencodinguFalseucodecsulookupu_is_text_encodinguLookupErroru_bufferu_line_bufferingu	_encodingu_errorsu_readuniversalu_readtranslateu_readnlu_writetranslateulinesepu_writenlu_encoderu_decoderu_decoded_charsu_decoded_chars_usedu	_snapshotubufferuseekableu	_seekableu_tellinguhasattru
_has_read1u	_b2cratiouwritableutellu_get_encoderusetstate(
uselfubufferuencodinguerrorsunewlineuline_bufferingu
write_throughulocaleumsguposition((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu__init__�s`
					
							
uTextIOWrapper.__init__cCs�d}y
|j}Wntk
r'YnX|dj|�7}y
|j}Wntk
r\YnX|dj|�7}|dj|j�S(Nu<_pyio.TextIOWrapperu name={0!r}u mode={0!r}u encoding={0!r}>(unameuAttributeErroruformatumodeuencoding(uselfuresultunameumode((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu__repr__	s



uTextIOWrapper.__repr__cCs|jS(N(u	_encoding(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuencodingsuTextIOWrapper.encodingcCs|jS(N(u_errors(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuerrorssuTextIOWrapper.errorscCs|jS(N(u_line_buffering(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuline_buffering!suTextIOWrapper.line_bufferingcCs|jS(N(u_buffer(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyubuffer%suTextIOWrapper.buffercCs|jrtd��n|jS(NuI/O operation on closed file.(uclosedu
ValueErroru	_seekable(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuseekable)s	uTextIOWrapper.seekablecCs
|jj�S(N(ubufferureadable(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyureadable.suTextIOWrapper.readablecCs
|jj�S(N(ubufferuwritable(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuwritable1suTextIOWrapper.writablecCs|jj�|j|_dS(N(ubufferuflushu	_seekableu_telling(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuflush4s
uTextIOWrapper.flushcCs?|jdk	r;|jr;z|j�Wd|jj�XndS(N(ubufferuNoneucloseduflushuclose(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuclose8suTextIOWrapper.closecCs
|jjS(N(ubufferuclosed(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuclosed?suTextIOWrapper.closedcCs
|jjS(N(ubufferuname(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyunameCsuTextIOWrapper.namecCs
|jj�S(N(ubufferufileno(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyufilenoGsuTextIOWrapper.filenocCs
|jj�S(N(ubufferuisatty(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuisattyJsuTextIOWrapper.isattyc	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(uWrite data, where s is a struwrite to closed fileucan't write %s to text streamu
u
N(uclosedu
ValueErroru
isinstanceustru	TypeErroru	__class__u__name__ulenu_writetranslateu_line_bufferingu_writenlureplaceu_encoderu_get_encoderuencodeubufferuwriteuflushuNoneu	_snapshotu_decoderureset(uselfusulengthuhaslfuencoderub((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuwriteMs$	
		uTextIOWrapper.writecCs+tj|j�}||j�|_|jS(N(ucodecsugetincrementalencoderu	_encodingu_errorsu_encoder(uselfumake_encoder((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu_get_encodercsuTextIOWrapper._get_encodercCsLtj|j�}||j�}|jr?t||j�}n||_|S(N(ucodecsugetincrementaldecoderu	_encodingu_errorsu_readuniversaluIncrementalNewlineDecoderu_readtranslateu_decoder(uselfumake_decoderudecoder((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu_get_decoderhs		uTextIOWrapper._get_decodercCs||_d|_dS(uSet the _decoded_chars buffer.iN(u_decoded_charsu_decoded_chars_used(uselfuchars((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu_set_decoded_charsss	u TextIOWrapper._set_decoded_charscCs[|j}|dkr+|j|d�}n|j|||�}|jt|�7_|S(u'Advance into the _decoded_chars buffer.N(u_decoded_chars_useduNoneu_decoded_charsulen(uselfunuoffsetuchars((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu_get_decoded_charsxs	u TextIOWrapper._get_decoded_charscCs1|j|krtd��n|j|8_dS(u!Rewind the _decoded_chars buffer.u"rewind decoded_chars out of boundsN(u_decoded_chars_useduAssertionError(uselfun((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu_rewind_decoded_chars�su#TextIOWrapper._rewind_decoded_charscCs�|jdkrtd��n|jr?|jj�\}}n|jr`|jj|j�}n|jj	|j�}|}|jj
||�}|j|�|r�t|�t|j
�|_n	d|_|jr�|||f|_n|S(uQ
        Read and decode the next chunk of data from the BufferedReader.
        u
no decodergN(u_decoderuNoneu
ValueErroru_tellingugetstateu
_has_read1ubufferuread1u_CHUNK_SIZEureadudecodeu_set_decoded_charsulenu_decoded_charsu	_b2cratiou	_snapshot(uselfu
dec_bufferu	dec_flagsuinput_chunkueofu
decoded_chars((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu_read_chunk�s 		
		uTextIOWrapper._read_chunkicCs*||d>B|d>B|d>Bt|�d>BS(Ni@i�i�i(ubool(uselfupositionu	dec_flagsu
bytes_to_feeduneed_eofu
chars_to_skip((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu_pack_cookie�suTextIOWrapper._pack_cookiecCsgt|d�\}}t|d�\}}t|d�\}}t|d�\}}|||||fS(Nii@llll(udivmod(uselfubiginturestupositionu	dec_flagsu
bytes_to_feeduneed_eofu
chars_to_skip((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu_unpack_cookie�s
uTextIOWrapper._unpack_cookiecCs|jstd��n|js0td��n|j�|jj�}|j}|dksm|j	dkr�|j
r�td��n|S|j	\}}|t|�8}|j
}|dkr�|j||�S|j�}z(t|j|�}d}x�|dkr�|jd|f�t|j|d|���}	|	|kr�|j�\}
}|
sn|}||	8}Pn|t|
�8}d}q�||8}|d}q�Wd}|jd|f�||}|}
|dkr�|j||
�Sd}d}d}x�t|t|��D]�}|d7}|t|j|||d���7}|j�\}}|r�||kr�||7}||8}|dd}
}}n||krPqqW|t|jddd
��7}d}||kr�td	��n|j||
|||�SWd|j|�XdS(Nu!underlying stream is not seekableu(telling position disabled by next() callupending decoded textiisiufinalu'can't reconstruct logical file positionT(u	_seekableuUnsupportedOperationu_tellinguIOErroruflushubufferutellu_decoderuNoneu	_snapshotu_decoded_charsuAssertionErrorulenu_decoded_chars_usedu_pack_cookieugetstateuintu	_b2cratiousetstateudecodeurangeuTrue(uselfupositionudecoderu	dec_flagsu
next_inputu
chars_to_skipusaved_stateu
skip_bytesu	skip_backunubudu	start_posustart_flagsu	bytes_feduneed_eofu
chars_decodeduiu
dec_buffer((u*/opt/alt/python33/lib64/python3.3/_pyio.pyutell�sv		
			
	


'

uTextIOWrapper.tellcCs5|j�|dkr%|j�}n|jj|�S(N(uflushuNoneutellubufferutruncate(uselfupos((u*/opt/alt/python33/lib64/python3.3/_pyio.pyutruncate&s
uTextIOWrapper.truncatecCs>|jdkrtd��n|j�|j}d|_|S(Nubuffer is already detached(ubufferuNoneu
ValueErroruflushu_buffer(uselfubuffer((u*/opt/alt/python33/lib64/python3.3/_pyio.pyudetach,s
		uTextIOWrapper.detachcCs�|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�Yn'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 seeksuuunsupported whence (%r)unegative seek position %rsu#can't restore logical file position(uclosedu
ValueErroru	_seekableuUnsupportedOperationutelluflushubufferuseeku_set_decoded_charsuNoneu	_snapshotu_decoderuresetu_unpack_cookieu_get_decoderusetstateureadudecodeulenu_decoded_charsuIOErroru_decoded_chars_usedu_encoderu_get_encoderuLookupError(uselfucookieuwhenceupositionu	start_posu	dec_flagsu
bytes_to_feeduneed_eofu
chars_to_skipuinput_chunkuencoder((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuseek4sd		

		

	

uTextIOWrapper.seekcCs+|j�|dkrd}n|jp1|j�}y|jWn4tk
ru}ztd�|�WYdd}~XnX|dkr�|j�|j|j	j
�dd�}|jd�d|_
|Sd}|j|�}xGt|�|kr"|r"|j�}||j|t|��7}q�W|SdS(	Niuan integer is requirediufinalui����TF(u_checkReadableuNoneu_decoderu_get_decoderu	__index__uAttributeErroru	TypeErroru_get_decoded_charsudecodeubufferureaduTrueu_set_decoded_charsu	_snapshotuFalseulenu_read_chunk(uselfunudecoderuerruresultueof((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuread{s(
	"	
	
!uTextIOWrapper.readcCs=d|_|j�}|s9d|_|j|_t�n|S(NF(uFalseu_tellingureadlineuNoneu	_snapshotu	_seekableu
StopIteration(uselfuline((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu__next__�s			uTextIOWrapper.__next__cCs�|jrtd��n|dkr-d	}nt|t�sKtd��n|j�}d}|jss|j�nd}}x�|j	r�|j
d|�}|dkr�|d}Pq�t|�}n�|jr�|j
d|�}|j
d|�}|d
kr&|dkrt|�}q�|d}Pq�|dkr@|d}Pq�||krZ|d}Pq�||dkrx|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�|dkr]||kr]|}n|jt|�|�|d|�S(
Nuread from closed fileiulimit must be an integeriu
u
iui����i����i����i����(uclosedu
ValueErroruNoneu
isinstanceuintu	TypeErroru_get_decoded_charsu_decoderu_get_decoderu_readtranslateufindulenu_readuniversalu_readnlu_read_chunku_decoded_charsu_set_decoded_charsu	_snapshotu_rewind_decoded_chars(uselfulimitulineustartuposuendposunlposucrpos((u*/opt/alt/python33/lib64/python3.3/_pyio.pyureadline�sp			

	
	




		
		uTextIOWrapper.readlinecCs|jr|jjSdS(N(u_decoderunewlinesuNone(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyunewlines�suTextIOWrapper.newlinesNF((u__name__u
__module__u__qualname__u__doc__u_CHUNK_SIZEuNoneuFalseu__init__u__repr__upropertyuencodinguerrorsuline_bufferingubufferuseekableureadableuwritableuflushucloseuclosedunameufilenouisattyuwriteu_get_encoderu_get_decoderu_set_decoded_charsu_get_decoded_charsu_rewind_decoded_charsu_read_chunku_pack_cookieu_unpack_cookieutellutruncateudetachuseekureadu__next__ureadlineunewlines(u
__locals__((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu
TextIOWrapper�sH	E
*	cG	Xu
TextIOWrappercsz|EeZdZdZdd�fdd�Zdd�Zdd	�Zed
d��Zedd
��Z	dd�Z
�S(uStringIOu�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
cs�tt|�jt�ddddd|�|dkrCd|_n|dk	r�t|t�s�t	dj
t|�j���t|�}n|j
|�|jd�ndS(	Nuencodinguutf-8uerrorsu
surrogatepassunewlineu*initial_value must be str or None, not {0}iF(usuperuStringIOu__init__uBytesIOuNoneuFalseu_writetranslateu
isinstanceustru	TypeErroruformatutypeu__name__uwriteuseek(uselfu
initial_valueunewline(u	__class__(u*/opt/alt/python33/lib64/python3.3/_pyio.pyu__init__s	
uStringIO.__init__cCsj|j�|jp|j�}|j�}|j�z |j|jj�dd�SWd|j	|�XdS(NufinalT(
uflushu_decoderu_get_decoderugetstateuresetudecodeubufferugetvalueuTrueusetstate(uselfudecoderu	old_state((u*/opt/alt/python33/lib64/python3.3/_pyio.pyugetvalues

 uStringIO.getvaluecCs
tj|�S(N(uobjectu__repr__(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu__repr__suStringIO.__repr__cCsdS(N(uNone(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuerrors!suStringIO.errorscCsdS(N(uNone(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyuencoding%suStringIO.encodingcCs|jd�dS(Nudetach(u_unsupported(uself((u*/opt/alt/python33/lib64/python3.3/_pyio.pyudetach)suStringIO.detach(u__name__u
__module__u__qualname__u__doc__u__init__ugetvalueu__repr__upropertyuerrorsuencodingudetach(u
__locals__((u	__class__u*/opt/alt/python33/lib64/python3.3/_pyio.pyuStringIO�s
uStringIO(1u__doc__uosuabcucodecsuerrnou_threadu
allocate_lockuLockuImportErroru
_dummy_threaduiou__all__uSEEK_SETuSEEK_CURuSEEK_ENDuvalid_seek_flagsuhasattruaddu	SEEK_HOLEu	SEEK_DATAuDEFAULT_BUFFER_SIZEuBlockingIOErroruNoneuTrueuopenu
DocDescriptoruOpenWrapperuUnsupportedOperationuAttributeErroru
ValueErroruIOErroruABCMetauIOBaseuregisteru	RawIOBaseu_iouFileIOuBufferedIOBaseu_BufferedIOMixinuBytesIOuBufferedReaderuBufferedWriteruBufferedRWPairuBufferedRandomu
TextIOBaseuIncrementalDecoderuIncrementalNewlineDecoderu
TextIOWrapperuStringIO(((u*/opt/alt/python33/lib64/python3.3/_pyio.pyu<module>s\
"

�	

�<
Vnx�YDFAU��V