55ok
| Direktori : /proc/thread-self/root/lib/python2.7/site-packages/pymysql/ |
| Current File : //proc/thread-self/root/lib/python2.7/site-packages/pymysql/_socketio.pyo |
�
s��Tc @ si d Z d d l Td d l Z d d l Z d g Z e j Z e j e j f Z d e j f d � � YZ
d S( s}
SocketIO imported from socket module in Python 3.
Copyright (c) 2001-2013 Python Software Foundation; All Rights Reserved.
i����( t *Nt SocketIOc B st e Z d Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z e
d � � Z e
d � � Z d
� Z
RS( s� Raw I/O implementation for stream sockets.
This class supports the makefile() method on sockets. It provides
the raw I/O interface on top of a socket object.
c C s� | d k r t d | � � n t j j | � | | _ d | k rQ | d 7} n | | _ d | k | _ d | k | _ t | _ d S(
Nt rt wt rwt rbt wbt rwbs invalid mode: %rt b( R R R R R R (
t
ValueErrort iot RawIOBaset __init__t _sockt _modet _readingt _writingt Falset _timeout_occurred( t selft sockt mode( ( s5 /usr/lib/python2.7/site-packages/pymysql/_socketio.pyR ! s
c C s� | j � | j � | j r, t d � � n x� t r� y | j j | � SWq/ t k
rh t | _ � q/ t k
r� } | j d } | t
k r� q/ n | t k r� d S� q/ Xq/ Wd S( s3 Read up to len(b) bytes into the writable buffer *b* and return
the number of bytes read. If the socket is non-blocking and no bytes
are available, None is returned.
If *b* is non-empty, a 0 return value indicates that the connection
was shutdown at the other end.
s! cannot read from timed out objecti N(
t _checkClosedt _checkReadableR t IOErrort TrueR
t recv_intot timeoutt errort argst EINTRt _blocking_errnost None( R R t et n( ( s5 /usr/lib/python2.7/site-packages/pymysql/_socketio.pyt readinto- s"