/opt/alt/python38/lib64/python3.8/asyncio/__pycache__
NameSizeModeActions
base_events.cpython-38.opt-1.pyc508090644editdlrm
base_events.cpython-38.opt-2.pyc418280644editdlrm
base_events.cpython-38.pyc510350644editdlrm
base_futures.cpython-38.opt-1.pyc19130644editdlrm
base_futures.cpython-38.opt-2.pyc16590644editdlrm
base_futures.cpython-38.pyc19130644editdlrm
base_subprocess.cpython-38.opt-1.pyc93350644editdlrm
base_subprocess.cpython-38.opt-2.pyc92350644editdlrm
base_subprocess.cpython-38.pyc94310644editdlrm
base_tasks.cpython-38.opt-1.pyc19590644editdlrm
base_tasks.cpython-38.opt-2.pyc19590644editdlrm
base_tasks.cpython-38.pyc19590644editdlrm
constants.cpython-38.opt-1.pyc5960644editdlrm
constants.cpython-38.opt-2.pyc5960644editdlrm
constants.cpython-38.pyc5960644editdlrm
coroutines.cpython-38.opt-1.pyc65840644editdlrm
coroutines.cpython-38.opt-2.pyc63520644editdlrm
coroutines.cpython-38.pyc66690644editdlrm
events.cpython-38.opt-1.pyc279640644editdlrm
events.cpython-38.opt-2.pyc189120644editdlrm
events.cpython-38.pyc280720644editdlrm
exceptions.cpython-38.opt-1.pyc25640644editdlrm
exceptions.cpython-38.opt-2.pyc19200644editdlrm
exceptions.cpython-38.pyc25640644editdlrm
format_helpers.cpython-38.opt-1.pyc23470644editdlrm
format_helpers.cpython-38.opt-2.pyc21030644editdlrm
format_helpers.cpython-38.pyc23470644editdlrm
futures.cpython-38.opt-1.pyc110310644editdlrm
futures.cpython-38.opt-2.pyc77250644editdlrm
futures.cpython-38.pyc112080644editdlrm
locks.cpython-38.opt-1.pyc163830644editdlrm
locks.cpython-38.opt-2.pyc97810644editdlrm
locks.cpython-38.pyc163830644editdlrm
log.cpython-38.opt-1.pyc2410644editdlrm
log.cpython-38.opt-2.pyc2020644editdlrm
log.cpython-38.pyc2410644editdlrm
proactor_events.cpython-38.opt-1.pyc238820644editdlrm
proactor_events.cpython-38.opt-2.pyc234820644editdlrm
proactor_events.cpython-38.pyc241600644editdlrm
protocols.cpython-38.opt-1.pyc86290644editdlrm
protocols.cpython-38.opt-2.pyc33700644editdlrm
protocols.cpython-38.pyc86290644editdlrm
queues.cpython-38.opt-1.pyc83960644editdlrm
queues.cpython-38.opt-2.pyc57170644editdlrm
queues.cpython-38.pyc83960644editdlrm
runners.cpython-38.opt-1.pyc19620644editdlrm
runners.cpython-38.opt-2.pyc12800644editdlrm
runners.cpython-38.pyc19620644editdlrm
selector_events.cpython-38.opt-1.pyc296400644editdlrm
selector_events.cpython-38.opt-2.pyc280060644editdlrm
selector_events.cpython-38.pyc297000644editdlrm
sslproto.cpython-38.opt-1.pyc214330644editdlrm
sslproto.cpython-38.opt-2.pyc146300644editdlrm
sslproto.cpython-38.pyc216330644editdlrm
staggered.cpython-38.opt-1.pyc39600644editdlrm
staggered.cpython-38.opt-2.pyc18270644editdlrm
staggered.cpython-38.pyc41330644editdlrm
streams.cpython-38.opt-1.pyc203800644editdlrm
streams.cpython-38.opt-2.pyc144860644editdlrm
streams.cpython-38.pyc206550644editdlrm
subprocess.cpython-38.opt-1.pyc73430644editdlrm
subprocess.cpython-38.opt-2.pyc72150644editdlrm
subprocess.cpython-38.pyc73730644editdlrm
tasks.cpython-38.opt-1.pyc242400644editdlrm
tasks.cpython-38.opt-2.pyc166540644editdlrm
tasks.cpython-38.pyc242960644editdlrm
transports.cpython-38.opt-1.pyc122470644editdlrm
transports.cpython-38.opt-2.pyc68460644editdlrm
transports.cpython-38.pyc122770644editdlrm
trsock.cpython-38.opt-1.pyc84980644editdlrm
trsock.cpython-38.opt-2.pyc82420644editdlrm
trsock.cpython-38.pyc84980644editdlrm
unix_events.cpython-38.opt-1.pyc389700644editdlrm
unix_events.cpython-38.opt-2.pyc343290644editdlrm
unix_events.cpython-38.pyc393510644editdlrm
windows_events.cpython-38.opt-1.pyc245660644editdlrm
windows_events.cpython-38.opt-2.pyc234590644editdlrm
windows_events.cpython-38.pyc245980644editdlrm
windows_utils.cpython-38.opt-1.pyc44020644editdlrm
windows_utils.cpython-38.opt-2.pyc39680644editdlrm
windows_utils.cpython-38.pyc44860644editdlrm
__init__.cpython-38.opt-1.pyc7650644editdlrm
__init__.cpython-38.opt-2.pyc7090644editdlrm
__init__.cpython-38.pyc7650644editdlrm
__main__.cpython-38.opt-1.pyc31510644editdlrm
__main__.cpython-38.opt-2.pyc31510644editdlrm
__main__.cpython-38.pyc31510644editdlrm
Edit: /opt/alt/python38/lib64/python3.8/asyncio/__pycache__/protocols.cpython-38.pyc (8629B)
U ,a@sbdZdZGdddZGdddeZGdddeZGdd d eZGd d d eZd d ZdS)zAbstract Protocol base classes.) BaseProtocolProtocolDatagramProtocolSubprocessProtocolBufferedProtocolc@s4eZdZdZdZddZddZddZd d Zd S) ra Common base class for protocol interfaces. Usually user implements protocols that derived from BaseProtocol like Protocol or ProcessProtocol. The only case when BaseProtocol should be implemented directly is write-only transport like write pipe cCsdS)zCalled when a connection is made. The argument is the transport representing the pipe connection. To receive data, wait for data_received() calls. When the connection is closed, connection_lost() is called. Nr)selfZ transportrr6/opt/alt/python38/lib64/python3.8/asyncio/protocols.pyconnection_madeszBaseProtocol.connection_madecCsdS)zCalled when the connection is lost or closed. The argument is an exception object or None (the latter meaning a regular EOF is received or the connection was aborted or closed). Nrrexcrrrconnection_lostszBaseProtocol.connection_lostcCsdS)aCalled when the transport's buffer goes over the high-water mark. Pause and resume calls are paired -- pause_writing() is called once when the buffer goes strictly over the high-water mark (even if subsequent writes increases the buffer size even more), and eventually resume_writing() is called once when the buffer size reaches the low-water mark. Note that if the buffer size equals the high-water mark, pause_writing() is not called -- it must go strictly over. Conversely, resume_writing() is called when the buffer size is equal or lower than the low-water mark. These end conditions are important to ensure that things go as expected when either mark is zero. NOTE: This is the only Protocol callback that is not called through EventLoop.call_soon() -- if it were, it would have no effect when it's most needed (when the app keeps writing without yielding until pause_writing() is called). Nrrrrr pause_writing%szBaseProtocol.pause_writingcCsdS)zvCalled when the transport's buffer drains below the low-water mark. See pause_writing() for details. Nrr rrrresume_writing;szBaseProtocol.resume_writingN) __name__ __module__ __qualname____doc__ __slots__r r rrrrrrr s  rc@s$eZdZdZdZddZddZdS)ranInterface for stream protocol. The user should implement this interface. They can inherit from this class but don't need to. The implementations here do nothing (they don't raise exceptions). When the user wants to requests a transport, they pass a protocol factory to a utility function (e.g., EventLoop.create_connection()). When the connection is made successfully, connection_made() is called with a suitable transport object. Then data_received() will be called 0 or more times with data (bytes) received from the transport; finally, connection_lost() will be called exactly once with either an exception object or None as an argument. State machine of calls: start -> CM [-> DR*] [-> ER?] -> CL -> end * CM: connection_made() * DR: data_received() * ER: eof_received() * CL: connection_lost() rcCsdS)zTCalled when some data is received. The argument is a bytes object. Nr)rdatarrr data_received^szProtocol.data_receivedcCsdSzCalled when the other end calls write_eof() or equivalent. If this returns a false value (including None), the transport will close itself. If it returns a true value, closing the transport is up to the protocol. Nrr rrr eof_receiveddszProtocol.eof_receivedN)rrrrrrrrrrrrBsrc@s,eZdZdZdZddZddZddZd S) raInterface for stream protocol with manual buffer control. Important: this has been added to asyncio in Python 3.7 *on a provisional basis*! Consider it as an experimental API that might be changed or removed in Python 3.8. Event methods, such as `create_server` and `create_connection`, accept factories that return protocols that implement this interface. The idea of BufferedProtocol is that it allows to manually allocate and control the receive buffer. Event loops can then use the buffer provided by the protocol to avoid unnecessary data copies. This can result in noticeable performance improvement for protocols that receive big amounts of data. Sophisticated protocols can allocate the buffer only once at creation time. State machine of calls: start -> CM [-> GB [-> BU?]]* [-> ER?] -> CL -> end * CM: connection_made() * GB: get_buffer() * BU: buffer_updated() * ER: eof_received() * CL: connection_lost() rcCsdS)aPCalled to allocate a new receive buffer. *sizehint* is a recommended minimal size for the returned buffer. When set to -1, the buffer size can be arbitrary. Must return an object that implements the :ref:`buffer protocol `. It is an error to return a zero-sized buffer. Nr)rsizehintrrr get_bufferszBufferedProtocol.get_buffercCsdS)zCalled when the buffer was updated with the received data. *nbytes* is the total number of bytes that were written to the buffer. Nr)rnbytesrrrbuffer_updatedszBufferedProtocol.buffer_updatedcCsdSrrr rrrrszBufferedProtocol.eof_receivedN)rrrrrrrrrrrrrms  rc@s$eZdZdZdZddZddZdS)rz Interface for datagram protocol.rcCsdS)z&Called when some datagram is received.Nr)rrZaddrrrrdatagram_receivedsz"DatagramProtocol.datagram_receivedcCsdS)z~Called when a send or receive operation raises an OSError. (Other than BlockingIOError or InterruptedError.) Nrr rrrerror_receivedszDatagramProtocol.error_receivedN)rrrrrrrrrrrrsrc@s,eZdZdZdZddZddZddZd S) rz,Interface for protocol for subprocess calls.rcCsdS)zCalled when the subprocess writes data into stdout/stderr pipe. fd is int file descriptor. data is bytes object. Nr)rfdrrrrpipe_data_receivedsz%SubprocessProtocol.pipe_data_receivedcCsdS)zCalled when a file descriptor associated with the child process is closed. fd is the int file descriptor that was closed. Nr)rrr rrrpipe_connection_lostsz'SubprocessProtocol.pipe_connection_lostcCsdS)z"Called when subprocess has exited.Nrr rrrprocess_exitedsz!SubprocessProtocol.process_exitedN)rrrrrr r!r"rrrrrs rcCst|}|r||}t|}|s*td||krL||d|<||dS|d||d|<||||d}t|}qdS)Nz%get_buffer() returned an empty buffer)lenr RuntimeErrorr)protorZdata_lenZbufZbuf_lenrrr_feed_data_to_buffered_protos     r&N)r__all__rrrrrr&rrrrs9+9