/usr/lib/python3/dist-packages/twisted/conch/__pycache__
NameSizeModeActions
avatar.cpython-310.pyc19490644editdlrm
checkers.cpython-310.pyc199020644editdlrm
endpoints.cpython-310.pyc309520644editdlrm
error.cpython-310.pyc35360644editdlrm
interfaces.cpython-310.pyc182920644editdlrm
ls.cpython-310.pyc19920644editdlrm
manhole.cpython-310.pyc120050644editdlrm
manhole_ssh.cpython-310.pyc53950644editdlrm
manhole_tap.cpython-310.pyc56070644editdlrm
mixin.cpython-310.pyc17000644editdlrm
recvline.cpython-310.pyc201170644editdlrm
stdio.cpython-310.pyc38690644editdlrm
tap.cpython-310.pyc29260644editdlrm
telnet.cpython-310.pyc350950644editdlrm
ttymodes.cpython-310.pyc22530644editdlrm
unix.cpython-310.pyc169390644editdlrm
__init__.cpython-310.pyc2340644editdlrm
Edit: /usr/lib/python3/dist-packages/twisted/conch/__pycache__/mixin.cpython-310.pyc (1700B)
o ¯b]ã@s"dZddlmZGdd„dƒZdS)z° Experimental optimization This module provides a single mixin class which allows protocols to collapse numerous small writes into a single larger one. @author: Jp Calderone é)Úreactorc@s<eZdZdZdZdZdZdd„Zdd„Zdd „Z d d „Z dS) ÚBufferingMixinz+ Mixin which adds write buffering. NgcCst |j|j¡S©N)rÚ callLaterÚDELAYÚflush©Úself©r ú5/usr/lib/python3/dist-packages/twisted/conch/mixin.pyÚscheduleózBufferingMixin.schedulecCs| |j¡dSr)Úresetr)r Útokenr r r Ú rescheduler zBufferingMixin.reschedulecCs8|jdurg|_| ¡|_n| |j¡|j |¡dS)a Buffer some bytes to be written soon. Every call to this function delays the real write by C{self.DELAY} seconds. When the delay expires, all collected bytes are written to the underlying transport using L{ITransport.writeSequence}. N)Ú_delayedWriteCallÚdatar rÚappend)r rr r r Úwrite!s   zBufferingMixin.writecCsd|_|j |j¡d|_dS)z/ Flush the buffer immediately. N)rÚ transportÚ writeSequencerrr r r r0s zBufferingMixin.flush) Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrr rrrr r r r rs rN)rÚtwisted.internetrrr r r r Ús