/usr/lib64/python3.6/asyncio/__pycache__
NameSizeModeActions
base_events.cpython-36.opt-1.pyc391090644editdlrm
base_events.cpython-36.opt-2.pyc312570644editdlrm
base_events.cpython-36.pyc393470644editdlrm
base_futures.cpython-36.opt-1.pyc20490644editdlrm
base_futures.cpython-36.opt-2.pyc17050644editdlrm
base_futures.cpython-36.pyc20490644editdlrm
base_subprocess.cpython-36.opt-1.pyc91680644editdlrm
base_subprocess.cpython-36.opt-2.pyc90660644editdlrm
base_subprocess.cpython-36.pyc92640644editdlrm
base_tasks.cpython-36.opt-1.pyc18630644editdlrm
base_tasks.cpython-36.opt-2.pyc18630644editdlrm
base_tasks.cpython-36.pyc18630644editdlrm
compat.cpython-36.opt-1.pyc7340644editdlrm
compat.cpython-36.opt-2.pyc6150644editdlrm
compat.cpython-36.pyc7340644editdlrm
constants.cpython-36.opt-1.pyc2530644editdlrm
constants.cpython-36.opt-2.pyc2260644editdlrm
constants.cpython-36.pyc2530644editdlrm
coroutines.cpython-36.opt-1.pyc84460644editdlrm
coroutines.cpython-36.opt-2.pyc82140644editdlrm
coroutines.cpython-36.pyc85540644editdlrm
events.cpython-36.opt-1.pyc252320644editdlrm
events.cpython-36.opt-2.pyc176570644editdlrm
events.cpython-36.pyc253400644editdlrm
futures.cpython-36.opt-1.pyc135040644editdlrm
futures.cpython-36.opt-2.pyc76340644editdlrm
futures.cpython-36.pyc137490644editdlrm
locks.cpython-36.opt-1.pyc154500644editdlrm
locks.cpython-36.opt-2.pyc89120644editdlrm
locks.cpython-36.pyc154500644editdlrm
log.cpython-36.opt-1.pyc2200644editdlrm
log.cpython-36.opt-2.pyc1810644editdlrm
log.cpython-36.pyc2200644editdlrm
proactor_events.cpython-36.opt-1.pyc166390644editdlrm
proactor_events.cpython-36.opt-2.pyc162390644editdlrm
proactor_events.cpython-36.pyc168240644editdlrm
protocols.cpython-36.opt-1.pyc59790644editdlrm
protocols.cpython-36.opt-2.pyc22220644editdlrm
protocols.cpython-36.pyc59790644editdlrm
queues.cpython-36.opt-1.pyc84060644editdlrm
queues.cpython-36.opt-2.pyc55430644editdlrm
queues.cpython-36.pyc84060644editdlrm
selector_events.cpython-36.opt-1.pyc295110644editdlrm
selector_events.cpython-36.opt-2.pyc279200644editdlrm
selector_events.cpython-36.pyc295690644editdlrm
sslproto.cpython-36.opt-1.pyc201430644editdlrm
sslproto.cpython-36.opt-2.pyc133130644editdlrm
sslproto.cpython-36.pyc203450644editdlrm
streams.cpython-36.opt-1.pyc196360644editdlrm
streams.cpython-36.opt-2.pyc133580644editdlrm
streams.cpython-36.pyc199170644editdlrm
subprocess.cpython-36.opt-1.pyc67960644editdlrm
subprocess.cpython-36.opt-2.pyc66290644editdlrm
subprocess.cpython-36.pyc68260644editdlrm
tasks.cpython-36.opt-1.pyc189170644editdlrm
tasks.cpython-36.opt-2.pyc120140644editdlrm
tasks.cpython-36.pyc190950644editdlrm
test_utils.cpython-36.opt-1.pyc175170644editdlrm
test_utils.cpython-36.opt-2.pyc162190644editdlrm
test_utils.cpython-36.pyc176830644editdlrm
transports.cpython-36.opt-1.pyc120320644editdlrm
transports.cpython-36.opt-2.pyc64150644editdlrm
transports.cpython-36.pyc120620644editdlrm
unix_events.cpython-36.opt-1.pyc302140644editdlrm
unix_events.cpython-36.opt-2.pyc265150644editdlrm
unix_events.cpython-36.pyc305570644editdlrm
windows_events.cpython-36.opt-1.pyc214960644editdlrm
windows_events.cpython-36.opt-2.pyc203840644editdlrm
windows_events.cpython-36.pyc214960644editdlrm
windows_utils.cpython-36.opt-1.pyc52940644editdlrm
windows_utils.cpython-36.opt-2.pyc47090644editdlrm
windows_utils.cpython-36.pyc53840644editdlrm
__init__.cpython-36.opt-1.pyc7800644editdlrm
__init__.cpython-36.opt-2.pyc7240644editdlrm
__init__.cpython-36.pyc7800644editdlrm
Edit: /usr/lib64/python3.6/asyncio/__pycache__/transports.cpython-36.pyc (12062B)
3 \R'@sdZddlmZddddddgZGd ddZGd ddeZGd ddeZGd ddeeZGd ddeZGdddeZ GdddeZ dS)zAbstract Transport class.)compat BaseTransport ReadTransportWriteTransport TransportDatagramTransportSubprocessTransportc@sDeZdZdZdddZdddZddZd d Zd d Zd dZ dS)rzBase class for transports.NcCs|dkr i}||_dS)N)_extra)selfextrar */usr/lib64/python3.6/asyncio/transports.py__init__ szBaseTransport.__init__cCs|jj||S)z#Get optional transport information.)r get)r namedefaultr r r get_extra_infoszBaseTransport.get_extra_infocCstdS)z2Return True if the transport is closing or closed.N)NotImplementedError)r r r r is_closingszBaseTransport.is_closingcCstdS)a Close the transport. Buffered data will be flushed asynchronously. No more data will be received. After all buffered data is flushed, the protocol's connection_lost() method will (eventually) called with None as its argument. N)r)r r r r closeszBaseTransport.closecCstdS)zSet a new protocol.N)r)r protocolr r r set_protocol$szBaseTransport.set_protocolcCstdS)zReturn the current protocol.N)r)r r r r get_protocol(szBaseTransport.get_protocol)N)N) __name__ __module__ __qualname____doc__rrrrrrr r r r r s   c@s eZdZdZddZddZdS)rz#Interface for read-only transports.cCstdS)zPause the receiving end. No data will be passed to the protocol's data_received() method until resume_reading() is called. N)r)r r r r pause_reading0szReadTransport.pause_readingcCstdS)zResume the receiving end. Data received will once again be passed to the protocol's data_received() method. N)r)r r r r resume_reading8szReadTransport.resume_readingN)rrrrrrr r r r r-sc@sJeZdZdZdddZddZddZd d Zd d Zd dZ ddZ dS)rz$Interface for write-only transports.NcCstdS)aSet the high- and low-water limits for write flow control. These two values control when to call the protocol's pause_writing() and resume_writing() methods. If specified, the low-water limit must be less than or equal to the high-water limit. Neither value can be negative. The defaults are implementation-specific. If only the high-water limit is given, the low-water limit defaults to an implementation-specific value less than or equal to the high-water limit. Setting high to zero forces low to zero as well, and causes pause_writing() to be called whenever the buffer becomes non-empty. Setting low to zero causes resume_writing() to be called only once the buffer is empty. Use of zero for either limit is generally sub-optimal as it reduces opportunities for doing I/O and computation concurrently. N)r)r highlowr r r set_write_buffer_limitsDsz&WriteTransport.set_write_buffer_limitscCstdS)z,Return the current size of the write buffer.N)r)r r r r get_write_buffer_sizeYsz$WriteTransport.get_write_buffer_sizecCstdS)zWrite some data bytes to the transport. This does not block; it buffers the data and arranges for it to be sent out asynchronously. N)r)r datar r r write]szWriteTransport.writecCstj|}|j|dS)zWrite a list (or any iterable) of data bytes to the transport. The default implementation concatenates the arguments and calls write() on the result. N)rZflatten_list_bytesr$)r Z list_of_datar#r r r writelineses zWriteTransport.writelinescCstdS)zClose the write end after flushing buffered data. (This is like typing ^D into a UNIX program reading from stdin.) Data may still be received. N)r)r r r r write_eofnszWriteTransport.write_eofcCstdS)zAReturn True if this transport supports write_eof(), False if not.N)r)r r r r can_write_eofwszWriteTransport.can_write_eofcCstdS)zClose the transport immediately. Buffered data will be lost. No more data will be received. The protocol's connection_lost() method will (eventually) be called with None as its argument. N)r)r r r r abort{szWriteTransport.abort)NN) rrrrr!r"r$r%r&r'r(r r r r rAs   c@seZdZdZdS)raSInterface representing a bidirectional transport. There may be several implementations, but typically, the user does not implement new transports; rather, the platform provides some useful transports that are implemented using the platform's best practices. The user never instantiates a transport directly; they call a utility function, passing it a protocol factory and other information necessary to create the transport and protocol. (E.g. EventLoop.create_connection() or EventLoop.create_server().) The utility function will asynchronously create a transport and a protocol and hook them up by calling the protocol's connection_made() method, passing it the transport. The implementation here raises NotImplemented for every method except writelines(), which calls write() in a loop. N)rrrrr r r r rsc@s"eZdZdZdddZddZdS)rz(Interface for datagram (UDP) transports.NcCstdS)aSend data to the transport. This does not block; it buffers the data and arranges for it to be sent out asynchronously. addr is target socket address. If addr is None use target address pointed on transport creation. N)r)r r#Zaddrr r r sendtoszDatagramTransport.sendtocCstdS)zClose the transport immediately. Buffered data will be lost. No more data will be received. The protocol's connection_lost() method will (eventually) be called with None as its argument. N)r)r r r r r(szDatagramTransport.abort)N)rrrrr)r(r r r r rs c@s<eZdZddZddZddZddZd d Zd d Zd S)rcCstdS)zGet subprocess id.N)r)r r r r get_pidszSubprocessTransport.get_pidcCstdS)zGet subprocess returncode. See also http://docs.python.org/3/library/subprocess#subprocess.Popen.returncode N)r)r r r r get_returncodesz"SubprocessTransport.get_returncodecCstdS)z&Get transport for pipe with number fd.N)r)r fdr r r get_pipe_transportsz&SubprocessTransport.get_pipe_transportcCstdS)zSend signal to subprocess. See also: docs.python.org/3/library/subprocess#subprocess.Popen.send_signal N)r)r signalr r r send_signalszSubprocessTransport.send_signalcCstdS)aLStop the subprocess. Alias for close() method. On Posix OSs the method sends SIGTERM to the subprocess. On Windows the Win32 API function TerminateProcess() is called to stop the subprocess. See also: http://docs.python.org/3/library/subprocess#subprocess.Popen.terminate N)r)r r r r terminates zSubprocessTransport.terminatecCstdS)zKill the subprocess. On Posix OSs the function sends SIGKILL to the subprocess. On Windows kill() is an alias for terminate(). See also: http://docs.python.org/3/library/subprocess#subprocess.Popen.kill N)r)r r r r kills zSubprocessTransport.killN) rrrr*r+r-r/r0r1r r r r rs csVeZdZdZdfdd ZddZddZd d Zdd d Zdd dZ ddZ Z S)_FlowControlMixinavAll the logic for (write) flow control in a mix-in base class. The subclass must implement get_write_buffer_size(). It must call _maybe_pause_protocol() whenever the write buffer size increases, and _maybe_resume_protocol() whenever it decreases. It may also override set_write_buffer_limits() (e.g. to specify different defaults). The subclass constructor must call super().__init__(extra). This will call set_write_buffer_limits(). The user may call set_write_buffer_limits() and get_write_buffer_size(), and their protocol's pause_writing() and resume_writing() may be called. Ncs0tj||dk st||_d|_|jdS)NF)superrAssertionError_loop_protocol_paused_set_write_buffer_limits)r r Zloop) __class__r r rs   z_FlowControlMixin.__init__cCsp|j}||jkrdS|jsld|_y|jjWn:tk rj}z|jjd|||jdWYdd}~XnXdS)NTzprotocol.pause_writing() failed)message exception transportr)r" _high_waterr6 _protocolZ pause_writing Exceptionr5call_exception_handler)r sizeexcr r r _maybe_pause_protocols z'_FlowControlMixin._maybe_pause_protocolcCsh|jrd|j|jkrdd|_y|jjWn:tk rb}z|jjd|||jdWYdd}~XnXdS)NFz protocol.resume_writing() failed)r9r:r;r)r6r" _low_waterr=Zresume_writingr>r5r?)r rAr r r _maybe_resume_protocolsz(_FlowControlMixin._maybe_resume_protocolcCs |j|jfS)N)rCr<)r r r r get_write_buffer_limitssz)_FlowControlMixin.get_write_buffer_limitscCsf|dkr|dkrd}nd|}|dkr.|d}||ko@dknsVtd||f||_||_dS)N@irz*high (%r) must be >= low (%r) must be >= 0i) ValueErrorr<rC)r rr r r r r7s z*_FlowControlMixin._set_write_buffer_limitscCs|j||d|jdS)N)rr )r7rB)r rr r r r r!-sz)_FlowControlMixin.set_write_buffer_limitscCstdS)N)r)r r r r r"1sz'_FlowControlMixin.get_write_buffer_size)NN)NN)NN) rrrrrrBrDrEr7r!r" __classcell__r r )r8r r2s  r2N) rZasyncior__all__rrrrrrr2r r r r s  #D4