/opt/alt/python-internal/lib64/python3.11/asyncio/__pycache__
NameSizeModeActions
base_events.cpython-311.opt-1.pyc911420644editdlrm
base_events.cpython-311.opt-2.pyc826920644editdlrm
base_events.cpython-311.pyc912250644editdlrm
base_futures.cpython-311.opt-1.pyc34080644editdlrm
base_futures.cpython-311.opt-2.pyc31690644editdlrm
base_futures.cpython-311.pyc34080644editdlrm
base_subprocess.cpython-311.opt-1.pyc165480644editdlrm
base_subprocess.cpython-311.opt-2.pyc164550644editdlrm
base_subprocess.cpython-311.pyc167230644editdlrm
base_tasks.cpython-311.opt-1.pyc41960644editdlrm
base_tasks.cpython-311.opt-2.pyc41960644editdlrm
base_tasks.cpython-311.pyc41960644editdlrm
constants.cpython-311.opt-1.pyc9830644editdlrm
constants.cpython-311.opt-2.pyc9830644editdlrm
constants.cpython-311.pyc9830644editdlrm
coroutines.cpython-311.opt-1.pyc39580644editdlrm
coroutines.cpython-311.opt-2.pyc38700644editdlrm
coroutines.cpython-311.pyc40170644editdlrm
events.cpython-311.opt-1.pyc378110644editdlrm
events.cpython-311.opt-2.pyc285060644editdlrm
events.cpython-311.pyc378110644editdlrm
exceptions.cpython-311.opt-1.pyc36630644editdlrm
exceptions.cpython-311.opt-2.pyc29900644editdlrm
exceptions.cpython-311.pyc36630644editdlrm
format_helpers.cpython-311.opt-1.pyc41510644editdlrm
format_helpers.cpython-311.opt-2.pyc39210644editdlrm
format_helpers.cpython-311.pyc41510644editdlrm
futures.cpython-311.opt-1.pyc181190644editdlrm
futures.cpython-311.opt-2.pyc147290644editdlrm
futures.cpython-311.pyc185240644editdlrm
locks.cpython-311.opt-1.pyc292270644editdlrm
locks.cpython-311.opt-2.pyc220260644editdlrm
locks.cpython-311.pyc292270644editdlrm
log.cpython-311.opt-1.pyc3140644editdlrm
log.cpython-311.opt-2.pyc2760644editdlrm
log.cpython-311.pyc3140644editdlrm
mixins.cpython-311.opt-1.pyc12160644editdlrm
mixins.cpython-311.opt-2.pyc11820644editdlrm
mixins.cpython-311.pyc12160644editdlrm
proactor_events.cpython-311.opt-1.pyc471700644editdlrm
proactor_events.cpython-311.opt-2.pyc467740644editdlrm
proactor_events.cpython-311.pyc477610644editdlrm
protocols.cpython-311.opt-1.pyc94650644editdlrm
protocols.cpython-311.opt-2.pyc44550644editdlrm
protocols.cpython-311.pyc94650644editdlrm
queues.cpython-311.opt-1.pyc128460644editdlrm
queues.cpython-311.opt-2.pyc102280644editdlrm
queues.cpython-311.pyc128460644editdlrm
runners.cpython-311.opt-1.pyc102530644editdlrm
runners.cpython-311.opt-2.pyc86460644editdlrm
runners.cpython-311.pyc102530644editdlrm
selector_events.cpython-311.opt-1.pyc641320644editdlrm
selector_events.cpython-311.opt-2.pyc621310644editdlrm
selector_events.cpython-311.pyc642120644editdlrm
sslproto.cpython-311.opt-1.pyc434660644editdlrm
sslproto.cpython-311.opt-2.pyc395250644editdlrm
sslproto.cpython-311.pyc435320644editdlrm
staggered.cpython-311.opt-1.pyc62250644editdlrm
staggered.cpython-311.opt-2.pyc41000644editdlrm
staggered.cpython-311.pyc66560644editdlrm
streams.cpython-311.opt-1.pyc346060644editdlrm
streams.cpython-311.opt-2.pyc288020644editdlrm
streams.cpython-311.pyc350100644editdlrm
subprocess.cpython-311.opt-1.pyc126550644editdlrm
subprocess.cpython-311.opt-2.pyc125330644editdlrm
subprocess.cpython-311.pyc126820644editdlrm
taskgroups.cpython-311.opt-1.pyc80070644editdlrm
taskgroups.cpython-311.opt-2.pyc73240644editdlrm
taskgroups.cpython-311.pyc81110644editdlrm
tasks.cpython-311.opt-1.pyc409350644editdlrm
tasks.cpython-311.opt-2.pyc330180644editdlrm
tasks.cpython-311.pyc410250644editdlrm
threads.cpython-311.opt-1.pyc13130644editdlrm
threads.cpython-311.opt-2.pyc8550644editdlrm
threads.cpython-311.pyc13130644editdlrm
timeouts.cpython-311.opt-1.pyc78480644editdlrm
timeouts.cpython-311.opt-2.pyc62470644editdlrm
timeouts.cpython-311.pyc80100644editdlrm
transports.cpython-311.opt-1.pyc151690644editdlrm
transports.cpython-311.opt-2.pyc98160644editdlrm
transports.cpython-311.pyc151890644editdlrm
trsock.cpython-311.opt-1.pyc54040644editdlrm
trsock.cpython-311.opt-2.pyc51470644editdlrm
trsock.cpython-311.pyc54040644editdlrm
unix_events.cpython-311.opt-1.pyc725810644editdlrm
unix_events.cpython-311.opt-2.pyc674970644editdlrm
unix_events.cpython-311.pyc733440644editdlrm
windows_events.cpython-311.opt-1.pyc470090644editdlrm
windows_events.cpython-311.opt-2.pyc459110644editdlrm
windows_events.cpython-311.pyc470430644editdlrm
windows_utils.cpython-311.opt-1.pyc75900644editdlrm
windows_utils.cpython-311.opt-2.pyc71600644editdlrm
windows_utils.cpython-311.pyc77760644editdlrm
__init__.cpython-311.opt-1.pyc13640644editdlrm
__init__.cpython-311.opt-2.pyc13090644editdlrm
__init__.cpython-311.pyc13640644editdlrm
__main__.cpython-311.opt-1.pyc60350644editdlrm
__main__.cpython-311.opt-2.pyc60350644editdlrm
__main__.cpython-311.pyc60350644editdlrm
Edit: /opt/alt/python-internal/lib64/python3.11/asyncio/__pycache__/streams.cpython-311.pyc (35010B)
!A?hok~dZddlZddlZddlZddlZddlZeedredz ZddlmZddlm Z ddlm Z dd lm Z dd lm Z dd l mZdd lmZd ZdeddZdeddZeedrdeddZdeddZGdde jZGddee jZGddZGddZdS)) StreamReader StreamWriterStreamReaderProtocolopen_connection start_serverNAF_UNIX)open_unix_connectionstart_unix_server) coroutines)events) exceptions)format_helpers) protocols)logger)sleepi)limitc Ktj}t||}t|| |j fd||fi|d{V\}}t | ||}||fS)aA wrapper for create_connection() returning a (reader, writer) pair. The reader returned is a StreamReader instance; the writer is a StreamWriter instance. The arguments are all the usual arguments to create_connection() except protocol_factory; most common are positional host and port, with various optional keyword arguments following. Additional optional keyword arguments are loop (to set the event loop instance to use) and limit (to set the buffer limit passed to the StreamReader). (If you want to customize the StreamReader and/or StreamReaderProtocol classes, just copy the code -- there's really nothing special here except some convenience.) rlooprcSNprotocolsz!open_connection..1sN)r get_running_looprrcreate_connectionr) hostportrkwdsrreader transport_writerrs @rrrs&  " $ $D D 1 1 1F#F666H//$..(,........LIq )Xvt < rclKtjfd}j|||fi|d{VS)aStart a socket server, call back for each client connected. The first parameter, `client_connected_cb`, takes two parameters: client_reader, client_writer. client_reader is a StreamReader object, while client_writer is a StreamWriter object. This parameter can either be a plain callback function or a coroutine; if it is a coroutine, it will be automatically converted into a Task. The rest of the arguments are all the usual arguments to loop.create_server() except protocol_factory; most common are positional host and port, with various optional keyword arguments following. The return value is the same as loop.create_server(). Additional optional keyword argument is limit (to set the buffer limit passed to the StreamReader). The return value is the same as loop.create_server(), i.e. a Server object which can be used to stop the service. cNt}t|}|SNrrrrr%rclient_connected_cbrrs rfactoryzstart_server..factoryNs6E555'0C-1333rN)r r create_server)r.r"r#rr$r/rs` ` @rrr6so,  " $ $D $#GT4@@4@@ @ @ @ @ @ @@rcKtj}t||}t|||jfd|fi|d{V\}}t |||}||fS)z@Similar to `open_connection` but works with UNIX Domain Sockets.rrcSrrrsrrz&open_unix_connection..bsHrN)r r rrcreate_unix_connectionr) pathrr$rr%r&r'r(rs @rr r Zs&((E555'T:::8T8    d,,&*,,,,,,,, 1i64@@v~rcjKtjfd}j||fi|d{VS)z=Similar to `start_server` but works with UNIX Domain Sockets.cNt}t|}|Sr+r,r-s rr/z"start_unix_server..factoryks6!D999F+F4G15777HOrN)r r create_unix_server)r.r4rr$r/rs` ` @rr r fsm&((        -T,WdCCdCCCCCCCCCrc8eZdZdZd dZdZdZdZdZdZ dS) FlowControlMixina)Reusable flow control logic for StreamWriter.drain(). This implements the protocol methods pause_writing(), resume_writing() and connection_lost(). If the subclass overrides these it must call the super methods. StreamWriter.drain() must wait for _drain_helper() coroutine. Nc|tjd|_n||_d|_t j|_d|_dS)N) stacklevelF)r _get_event_loop_loop_paused collectionsdeque_drain_waiters_connection_lost)selfrs r__init__zFlowControlMixin.__init__~sK </1===DJJDJ )/11 %rc|jrJd|_|jrtjd|dSdS)NTz%r pauses writing)r?r> get_debugrdebugrDs r pause_writingzFlowControlMixin.pause_writingsP< :   ! ! 4 L,d 3 3 3 3 3 4 4rc|jsJd|_|jrtjd||jD]+}|s|d,dS)NFz%r resumes writing)r?r>rGrrHrBdone set_resultrDwaiters rresume_writingzFlowControlMixin.resume_writings|| :   ! ! 5 L-t 4 4 4) ( (F;;== (!!$''' ( (rcd|_|jsdS|jD]C}|s-||d.||DdSNT)rCr?rBrLrM set_exceptionrDexcrOs rconnection_lostz FlowControlMixin.connection_lostsv $|  F) . .F;;== .;%%d++++((---  . .rc2K|jrtd|jsdS|j}|j| |d{V|j|dS#|j|wxYw)NzConnection lost)rCConnectionResetErrorr?r> create_futurerBappendremoverNs r _drain_helperzFlowControlMixin._drain_helpers   :&'899 9|  F))++ ""6*** /LLLLLLL   & &v . . . . .D  & &v . . . .s A::Bctr)NotImplementedErrorrDstreams r_get_close_waiterz"FlowControlMixin._get_close_waiters!!rr) __name__ __module__ __qualname____doc__rErJrPrVr\rarrrr9r9ts}&&&&444 ((( . . . / / /"""""rr9cleZdZdZdZd fd ZedZdZdZ fdZ dZ d Z d Z d ZxZS) ra=Helper class to adapt between Protocol and StreamReader. (This is a helper class instead of making StreamReader itself a Protocol subclass, because the StreamReader has other potential uses, and to prevent the user of the StreamReader to accidentally call inappropriate methods of the protocol.) NcLt||&tj||_|j|_nd|_|||_d|_d|_d|_ d|_ ||_ d|_ |j |_dS)NrF)superrEweakrefref_stream_reader_wr_source_traceback_strong_reader_reject_connection_stream_writer_task _transport_client_connected_cb _over_sslr>rY_closed)rD stream_readerr.r __class__s rrEzStreamReaderProtocol.__init__s d###  $%,[%?%?D "%2%DD " "%)D "  *#0D "'" $7!z//11 rc<|jdS|Sr)rkrIs r_stream_readerz#StreamReaderProtocol._stream_readers"  ! )4%%'''rcv|j}|j}||_||_|ddu|_dS)N sslcontext)r>r&rorqget_extra_infors)rDr(rr&s r_replace_writerz$StreamReaderProtocol._replace_writers>z$ $#"11,??tKrcXjrEddi}jr j|d<j|dS_j}||ddu_ j t|j_ |j }tj|r?fd}j|_j|d_dSdS)NmessagezpAn open stream was garbage collected prior to establishing network connection; call "stream.close()" explicitly.source_tracebackrzc|rdS|}|4jd|ddSdS)Nz*Unhandled exception in client_connected_cb)r~ exceptionr&) cancelledcloserr>call_exception_handler)taskrUrDr&s rcallbackz6StreamReaderProtocol.connection_made..callbacks~~''!)))..**C 99'S),)2;; "))))) 'r)rnrlr>rabortrqrx set_transportr{rsrrrror iscoroutine create_taskrpadd_done_callbackrm)rDr&contextr%resrs`` rconnection_madez$StreamReaderProtocol.connection_madesg  " @G % E.2.D*+ J - -g 6 6 6 OO    F#$     + + +"11,??tK  $ 0".y$/5/3z#;#;D ++F,0,?AAC%c** 7 * * * * * *"Z33C88  ,,X666"&D   / 1 0rc|j}|,||n|||js7||jdn|j|t |d|_d|_ d|_ d|_ dSr) rxfeed_eofrSrtrLrMrhrVrkrorprq)rDrUr%rvs rrVz$StreamReaderProtocol.connection_lost s$  {!!!!$$S)))|  "" 0{ ''---- **3/// $$$!%" rcF|j}|||dSdSr)rx feed_data)rDdatar%s r data_receivedz"StreamReaderProtocol.data_receiveds2$     T " " " " "  rcR|j}|||jrdSdS)NFT)rxrrs)rDr%s r eof_receivedz!StreamReaderProtocol.eof_received!s6$   OO    > 5trc|jSr)rtr_s rraz&StreamReaderProtocol._get_close_waiter,s |rc |j}|r*|s|dSdSdS#t$rYdSwxYwr)rtrLrrAttributeError)rDcloseds r__del__zStreamReaderProtocol.__del__/s #\F{{}} #V%5%5%7%7 #  """"" # # # #    DD sA AANN)rbrcrdrerlrEpropertyrxr|rrVrrrar __classcell__)rvs@rrrs222222(((X( LLL('('('T$###    # # # # # # #rrceZdZdZdZdZedZdZdZ dZ dZ d Z d Z d Zdd ZdZd d ddZdZd S)ra'Wraps a Transport. This exposes write(), writelines(), [can_]write_eof(), get_extra_info() and close(). It adds drain() which returns an optional Future on which you can wait for flow control. It also adds a transport property which references the Transport directly. c||_||_|t|tsJ||_||_|j|_|jddSr) rq _protocol isinstancer_readerr>rY _complete_futrM)rDr&rr%rs rrEzStreamWriter.__init__Esi#!~FL!A!A~~A  !Z5577 %%d+++++rc|jjd|jg}|j|d|jdd|S)N transport=zreader=<{}> )rvrbrqrrZformatjoinrDinfos r__repr__zStreamWriter.__repr__Os]')Ido)I)IJ < # KK2$,22 3 3 3}}SXXd^^,,,rc|jSrrqrIs rr&zStreamWriter.transportUs rc:|j|dSr)rqwriterDrs rrzStreamWriter.writeYs d#####rc:|j|dSr)rq writelinesrs rrzStreamWriter.writelines\s ""4(((((rc4|jSr)rq write_eofrIs rrzStreamWriter.write_eof_s((***rc4|jSr)rq can_write_eofrIs rrzStreamWriter.can_write_eofbs,,...rc4|jSr)rqrrIs rrzStreamWriter.closees$$&&&rc4|jSr)rq is_closingrIs rrzStreamWriter.is_closinghs))+++rcJK|j|d{VdSr)rrarIs r wait_closedzStreamWriter.wait_closedks4n..t44444444444rNc8|j||Sr)rqr{)rDnamedefaults rr{zStreamWriter.get_extra_infons--dG<< start_tlsrqr|)rDrzrrrr new_transports rrzStreamWriter.start_tlssn9E >jjll"j22 OXz#_"7399999999 (  &&&&&rc|jsh|jrt jdt dS|t jd|t dSdS)Nzloop is closedz unclosed )rqrr> is_closedwarningswarnResourceWarningrrIs rrzStreamWriter.__del__s))++ Ez##%% E .@@@@@  2$22ODDDDD  E Err)rbrcrdrerErrr&rrrrrrrr{rrrrrrrr;s,,,--- X$$$)))+++///''',,,555====---4)-.2 ' ' ' ' 'EEEEErrceZdZdZedfdZdZdZdZdZ dZ dZ d Z d Z d Zd Zd ZddZddZdZdZdZdS)rNcz|dkrtd||_|tj|_n||_t |_d|_d|_d|_ d|_ d|_ |j r-tjtjd|_dSdS)NrzLimit cannot be <= 0Fr ) ValueError_limitr r=r> bytearray_buffer_eof_waiter _exceptionrqr?rGr extract_stacksys _getframerl)rDrrs rrEzStreamReader.__init__s A::344 4 </11DJJDJ {{    :   ! ! "%3%A a  &"&"D " " " " "rc\dg}|jr*|t|jd|jr|d|jt kr|d|j|jr|d|j|jr|d|j|jr|d|j|j r|dd d |S) Nrz byteseofzlimit=zwaiter=z exception=rpausedrr) rrZlenrr_DEFAULT_LIMITrrrqr?rrrs rrzStreamReader.__repr__s, < 6 KK3t|,,444 5 5 5 9  KK    ;. ( ( KK... / / / < 4 KK2$,22 3 3 3 ? : KK8T_88 9 9 9 ? : KK8T_88 9 9 9 < " KK ! ! !}}SXXd^^,,,rc|jSr)rrIs rrzStreamReader.exceptions rc||_|j}|2d|_|s||dSdSdSr)rrrrSrTs rrSzStreamReader.set_exceptions]  DL##%% *$$S)))))   * *rc|j}|2d|_|s|ddSdSdS)z1Wakeup read*() functions waiting for data or EOF.N)rrrMrNs r_wakeup_waiterzStreamReader._wakeup_waitersV  DL##%% (!!$'''''   ( (rc6|j Jd||_dS)NzTransport already setr)rDr&s rrzStreamReader.set_transports$&&(?&&&#rc|jr?t|j|jkr$d|_|jdSdSdS)NF)r?rrrrqresume_readingrIs r_maybe_resume_transportz$StreamReader._maybe_resume_transportsS < -C --<< DL O * * , , , , , - -<rY)rD func_names r_wait_for_datazStreamReader._wait_for_datas < #55566 6988888} < - DL O * * , , ,z//11  ,       DLLL4DL    s 3 B BcKd}t|} ||d{V}n#tj$r}|jcYd}~Sd}~wtj$r}|j||jr|jd|j|z=n|j | t|j dd}~wwxYw|S)aRead chunk of data from the stream until newline (b' ') is found. On success, return chunk that ends with newline. If only partial line can be read due to EOF, return incomplete line without terminating newline. When EOF was reached while no bytes read, empty bytes object is returned. If limit is reached, ValueError will be raised. In that case, if newline was found, complete line including newline will be removed from internal buffer. Else, internal buffer will be cleared. Limit is compared against part of the line without newline. If stream was paused, this function will automatically resume it if needed.  Nr) r readuntilrIncompleteReadErrorpartialLimitOverrunErrorr startswithconsumedclearrrargs)rDsepseplenlinees rreadlinezStreamReader.readline#s  S (,,,,,,,,DD-   9      + ( ( (|&&sAJ77 %L!5!*v"5!566 ""$$$  ( ( * * *QVAY'' '  ( s(1CA C CA:CCrcKt|}|dkrtd|j|jd} t|j}||z |krJ|j||}|dkrn|dz|z }||jkrt jd||jrBt|j}|j t j |d| dd{V||jkrt jd ||jd||z}|jd||z=| t|S) aVRead data from the stream until ``separator`` is found. On success, the data and separator will be removed from the internal buffer (consumed). Returned data will include the separator at the end. Configured stream limit is used to check result. Limit sets the maximal length of data that can be returned, not counting the separator. If an EOF occurs and the complete separator is still not found, an IncompleteReadError exception will be raised, and the internal buffer will be reset. The IncompleteReadError.partial attribute may contain the separator partially. If the data cannot be read because of over limit, a LimitOverrunError exception will be raised, and the data will be left in the internal buffer, so it can be read again. rz,Separator should be at least one-byte stringNTr z2Separator is not found, and chunk exceed the limitrz2Separator is found, but chunk is longer than limit)rrrrfindrrrrbytesrrrr)rD separatorroffsetbuflenisepchunks rrzStreamReader.readuntilBs(Y Q;;KLL L ? &/ !* 3&&F&((|((F;;2:: !f,DK''$6L   y Bdl++ ""$$$ 4UDAAA%%k22 2 2 2 2 2 2 2= 3@ $+  .DdLL L ^dVm^, L$- ( $$&&&U||rrcK|j|j|dkrdS|dkrQg} ||jd{V}|sn||9d|S|js"|js|dd{Vt|jd|}|jd|=| |S)aRead up to `n` bytes from the stream. If `n` is not provided or set to -1, read until EOF, then return all read bytes. If EOF was received and the internal buffer is empty, return an empty bytes object. If `n` is 0, return an empty bytes object immediately. If `n` is positive, return at most `n` available bytes as soon as at least 1 byte is available in the internal buffer. If EOF is received before any byte is read, return an empty bytes object. Returned value is not limited with limit, configured at stream creation. If stream was paused, this function will automatically resume it if needed. NrrTread) rr rrZrrrrrr)rDnblocksblockrs rr zStreamReader.reads, ? &/ ! 663 q55 F %"ii 44444444 e$$$  % 88F## #| .DI .%%f-- - - - - - - -T\"1"%&& L!  $$&&& rcK|dkrtd|j|j|dkrdSt|j|kr||jrBt |j}|jtj||| dd{Vt|j|k|t|j|kr.t |j}|jn&t |jd|}|jd|=| |S)aRead exactly `n` bytes. Raise an IncompleteReadError if EOF is reached before `n` bytes can be read. The IncompleteReadError.partial attribute of the exception will contain the partial read bytes. if n is zero, return empty bytes object. Returned value is not limited with limit, configured at stream creation. If stream was paused, this function will automatically resume it if needed. rz*readexactly size can not be less than zeroNr readexactly) rrrrrrrrrrr)rDr  incompleters rrzStreamReader.readexactlysK q55IJJ J ? &/ ! 663$,!##y D"4<00  ""$$$ 4ZCCC%%m44 4 4 4 4 4 4 4 $,!## t|   ! !&&D L   bqb)**D RaR  $$&&& rc|SrrrIs r __aiter__zStreamReader.__aiter__s rcXK|d{V}|dkrt|S)Nr)rStopAsyncIteration)rDvals r __anext__zStreamReader.__anext__s9MMOO###### #::$ $ r)r)r)rbrcrdrlrrErrrSrrrrrrrrrr rrrrrrrrs4+$"""",---$***((($$$--- ...$$$,   8>YYYYv1111f'''Rrrrr)__all__r@socketrrrihasattrr r rrrlogrtasksrrrrr r Protocolr9rrrrrrrsf '  769= <