/opt/alt/python34/lib64/python3.4/asyncio/__pycache__
NameSizeModeActions
base_events.cpython-34.pyc381670644editdlrm
base_events.cpython-34.pyo378350644editdlrm
base_subprocess.cpython-34.pyc98210644editdlrm
base_subprocess.cpython-34.pyo96960644editdlrm
compat.cpython-34.pyc7510644editdlrm
compat.cpython-34.pyo7510644editdlrm
constants.cpython-34.pyc2420644editdlrm
constants.cpython-34.pyo2420644editdlrm
coroutines.cpython-34.pyc87020644editdlrm
coroutines.cpython-34.pyo85690644editdlrm
events.cpython-34.pyc241880644editdlrm
events.cpython-34.pyo239790644editdlrm
futures.cpython-34.pyc156600644editdlrm
futures.cpython-34.pyo153860644editdlrm
locks.cpython-34.pyc156970644editdlrm
locks.cpython-34.pyo156970644editdlrm
log.cpython-34.pyc2440644editdlrm
log.cpython-34.pyo2440644editdlrm
proactor_events.cpython-34.pyc180090644editdlrm
proactor_events.cpython-34.pyo177630644editdlrm
protocols.cpython-34.pyc60910644editdlrm
protocols.cpython-34.pyo60910644editdlrm
queues.cpython-34.pyc89310644editdlrm
queues.cpython-34.pyo89310644editdlrm
selector_events.cpython-34.pyc309980644editdlrm
selector_events.cpython-34.pyo309330644editdlrm
sslproto.cpython-34.pyc213040644editdlrm
sslproto.cpython-34.pyo210530644editdlrm
streams.cpython-34.pyc208450644editdlrm
streams.cpython-34.pyo204880644editdlrm
subprocess.cpython-34.pyc71520644editdlrm
subprocess.cpython-34.pyo71160644editdlrm
tasks.cpython-34.pyc228510644editdlrm
tasks.cpython-34.pyo226470644editdlrm
test_utils.cpython-34.pyc163380644editdlrm
test_utils.cpython-34.pyo159310644editdlrm
transports.cpython-34.pyc121630644editdlrm
transports.cpython-34.pyo121270644editdlrm
unix_events.cpython-34.pyc313780644editdlrm
unix_events.cpython-34.pyo309670644editdlrm
windows_events.cpython-34.pyc233080644editdlrm
windows_events.cpython-34.pyo233080644editdlrm
windows_utils.cpython-34.pyc59430644editdlrm
windows_utils.cpython-34.pyo58410644editdlrm
__init__.cpython-34.pyc8700644editdlrm
__init__.cpython-34.pyo8700644editdlrm
Edit: /opt/alt/python34/lib64/python3.4/asyncio/__pycache__/transports.cpython-34.pyo (12127B)
î ýf}&ã@sÌdZddlmZddddddgZGd d„dƒZGd d„deƒZGd d„deƒZGd d„deeƒZGd d„deƒZGdd„deƒZ Gdd„deƒZ dS)zAbstract Transport class.é)ÚcompatÚ BaseTransportÚ ReadTransportÚWriteTransportÚ TransportÚDatagramTransportÚSubprocessTransportc@sLeZdZdZddd„Zddd„Zdd„Zd d „ZdS) rzBase class for transports.NcCs"|dkri}n||_dS)N)Ú_extra)ÚselfÚextra©r ú7/opt/alt/python34/lib64/python3.4/asyncio/transports.pyÚ__init__ s  zBaseTransport.__init__cCs|jj||ƒS)z#Get optional transport information.)r Úget)r ÚnameÚdefaultr r r Úget_extra_infoszBaseTransport.get_extra_infocCs t‚dS)z2Return True if the transport is closing or closed.N)ÚNotImplementedError)r r r r Ú is_closingszBaseTransport.is_closingcCs t‚dS)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.close)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrrr r r r r s  c@s.eZdZdZdd„Zdd„ZdS)rz#Interface for read-only transports.cCs t‚dS)z”Pause 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_reading(szReadTransport.pause_readingcCs t‚dS)z…Resume the receiving end. Data received will once again be passed to the protocol's data_received() method. N)r)r r r r Úresume_reading0szReadTransport.resume_readingN)rrrrrrr r r r r%s  c@speZdZdZdddd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dS)rz$Interface for write-only transports.NcCs t‚dS)a¦Set 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 ÚhighÚlowr r r Úset_write_buffer_limits<sz&WriteTransport.set_write_buffer_limitscCs t‚dS)z,Return the current size of the write buffer.N)r)r r r r Úget_write_buffer_sizeQsz$WriteTransport.get_write_buffer_sizecCs t‚dS)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 ÚwriteUszWriteTransport.writecCs tj|ƒ}|j|ƒdS)z¯Write 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 Ú writelines]szWriteTransport.writelinescCs t‚dS)z©Close 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_eoffszWriteTransport.write_eofcCs t‚dS)zAReturn True if this transport supports write_eof(), False if not.N)r)r r r r Ú can_write_eofoszWriteTransport.can_write_eofcCs t‚dS)zÝClose 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 ÚabortsszWriteTransport.abort) rrrrrrr!r"r#r$r%r r r r r9s    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 r}s c@s1eZdZdZddd„Zdd„ZdS)rz(Interface for datagram (UDP) transports.NcCs t‚dS)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 Úsendto–szDatagramTransport.sendtocCs t‚dS)zÝClose 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)rrrrr&r%r r r r r“s  c@sXeZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd S)rcCs t‚dS)zGet subprocess id.N)r)r r r r Úget_pid¬szSubprocessTransport.get_pidcCs t‚dS)z…Get subprocess returncode. See also http://docs.python.org/3/library/subprocess#subprocess.Popen.returncode N)r)r r r r Úget_returncode°sz"SubprocessTransport.get_returncodecCs t‚dS)z&Get transport for pipe with number fd.N)r)r Úfdr r r Úget_pipe_transport¸sz&SubprocessTransport.get_pipe_transportcCs t‚dS)z€Send signal to subprocess. See also: docs.python.org/3/library/subprocess#subprocess.Popen.send_signal N)r)r Úsignalr r r Ú send_signal¼szSubprocessTransport.send_signalcCs t‚dS)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 Ú terminateÄs zSubprocessTransport.terminatecCs t‚dS)zõKill 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 ÚkillÒs zSubprocessTransport.killN) rrrr'r(r*r,r-r.r r r r rªs      cs‚eZdZdZdd‡fdd†Zdd„Zdd„Zd d „Zddd d „Zddd d„Z dd„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. Ncs0tƒj|ƒ||_d|_|jƒdS)NF)ÚsuperrÚ_loopÚ_protocol_pausedÚ_set_write_buffer_limits)r r Zloop)Ú __class__r r rïs  z_FlowControlMixin.__init__cCs |jƒ}||jkrdS|jsœd|_y|jjƒWqœtk r˜}z4|jjidd6|d6|d6|jd6ƒWYdd}~XqœXndS)NTzprotocol.pause_writing() failedÚmessageÚ exceptionÚ transportÚprotocol)rÚ _high_waterr2Ú _protocolZ pause_writingÚ Exceptionr1Úcall_exception_handler)r ÚsizeÚexcr r r Ú_maybe_pause_protocolös    z'_FlowControlMixin._maybe_pause_protocolcCs–|jr’|jƒ|jkr’d|_y|jjƒWq’tk rŽ}z4|jjidd6|d6|d6|jd6ƒWYdd}~Xq’XndS)NFz protocol.resume_writing() failedr5r6r7r8)r2rÚ _low_waterr:Zresume_writingr;r1r<)r r>r r r Ú_maybe_resume_protocols   z(_FlowControlMixin._maybe_resume_protocolcCs|j|jfS)N)r@r9)r r r r Úget_write_buffer_limitssz)_FlowControlMixin.get_write_buffer_limitscCs’|dkr.|dkr!d}q.d|}n|dkrG|d}n||ko^dkns|td||fƒ‚n||_||_dS)Né@iérz*high (%r) must be >= low (%r) must be >= 0i)Ú ValueErrorr9r@)r rrr r r r3s       z*_FlowControlMixin._set_write_buffer_limitscCs$|jd|d|ƒ|jƒdS)Nrr)r3r?)r rrr r r r%sz)_FlowControlMixin.set_write_buffer_limitscCs t‚dS)N)r)r r r r r)sz'_FlowControlMixin.get_write_buffer_size) rrrrrr?rArBr3rrr r )r4r r/Þs    r/N) rZasynciorÚ__all__rrrrrrr/r r r r Ús D4