/opt/alt/python37/lib/python3.7/site-packages/paste/util
NameSizeModeActions
looper/-0755rm
template/-0755rm
__pycache__/-0755rm
classinit.py18490644editdlrm
classinit.pyc19310644editdlrm
classinit.pyo19310644editdlrm
classinstance.py13730644editdlrm
classinstance.pyc23230644editdlrm
classinstance.pyo21610644editdlrm
converters.py8630644editdlrm
converters.pyc11740644editdlrm
converters.pyo11740644editdlrm
dateinterval.py24140644editdlrm
dateinterval.pyc31500644editdlrm
dateinterval.pyo31500644editdlrm
datetimeutil.py111700644editdlrm
datetimeutil.pyc102530644editdlrm
datetimeutil.pyo102530644editdlrm
doctest24.py994180644editdlrm
doctest24.pyc844030644editdlrm
doctest24.pyo841150644editdlrm
filemixin.py14310644editdlrm
filemixin.pyc20620644editdlrm
filemixin.pyo20620644editdlrm
finddata.py38410644editdlrm
finddata.pyc29560644editdlrm
finddata.pyo29560644editdlrm
findpackage.py7860644editdlrm
findpackage.pyc9140644editdlrm
findpackage.pyo9140644editdlrm
import_string.py31100644editdlrm
import_string.pyc33450644editdlrm
import_string.pyo33450644editdlrm
intset.py191310644editdlrm
intset.pyc195320644editdlrm
intset.pyo195320644editdlrm
ip4.py92710644editdlrm
ip4.pyc92430644editdlrm
ip4.pyo92430644editdlrm
killthread.py12290644editdlrm
killthread.pyc14310644editdlrm
killthread.pyo14310644editdlrm
looper.py.tmpta39690644editdlrm
mimeparse.py65920644editdlrm
mimeparse.pyc71580644editdlrm
mimeparse.pyo71580644editdlrm
multidict.py114090644editdlrm
multidict.pyc167200644editdlrm
multidict.pyo167200644editdlrm
PySourceColor.py858650644editdlrm
PySourceColor.pyc556160644editdlrm
PySourceColor.pyo556160644editdlrm
quoting.py24760644editdlrm
quoting.pyc30140644editdlrm
quoting.pyo30140644editdlrm
scgiserver.py56360644editdlrm
scgiserver.pyc61260644editdlrm
scgiserver.pyo60150644editdlrm
string24.py167430644editdlrm
string24.pyc186850644editdlrm
string24.pyo186850644editdlrm
template.py.tmpta242950644editdlrm
threadedprint.py82110644editdlrm
threadedprint.pyc103980644editdlrm
threadedprint.pyo90510644editdlrm
threadinglocal.py14840644editdlrm
threadinglocal.pyc20580644editdlrm
threadinglocal.pyo20580644editdlrm
UserDict24.py55160644editdlrm
UserDict24.pyc105130644editdlrm
UserDict24.pyo105130644editdlrm
__init__.py860644editdlrm
__init__.pyc2570644editdlrm
__init__.pyo2570644editdlrm
Edit: /opt/alt/python37/lib/python3.7/site-packages/paste/util/threadedprint.pyc (10398B)
Ñò bòNc@s¼dZddkZddkZddklZdeifd„ƒYZdada d„Z d„Z d„Z e a ad eifd „ƒYZdadad „Zd „Z d „ZdS(sà threadedprint.py ================ :author: Ian Bicking :date: 12 Jul 2004 Multi-threaded printing; allows the output produced via print to be separated according to the thread. To use this, you must install the catcher, like:: threadedprint.install() The installation optionally takes one of three parameters: default The default destination for print statements (e.g., ``sys.stdout``). factory A function that will produce the stream for a thread, given the thread's name. paramwriter Instead of writing to a file-like stream, this function will be called like ``paramwriter(thread_name, text)`` for every write. The thread name is the value returned by ``threading.currentThread().getName()``, a string (typically something like Thread-N). You can also submit file-like objects for specific threads, which will override any of these parameters. To do this, call ``register(stream, [threadName])``. ``threadName`` is optional, and if not provided the stream will be registered for the current thread. If no specific stream is registered for a thread, and no default has been provided, then an error will occur when anything is written to ``sys.stdout`` (or printed). Note: the stream's ``write`` method will be called in the thread the text came from, so you should consider thread safety, especially if multiple threads share the same writer. Note: if you want access to the original standard out, use ``sys.__stdout__``. You may also uninstall this, via:: threadedprint.uninstall() TODO ---- * Something with ``sys.stderr``. * Some default handlers. Maybe something that hooks into `logging`. * Possibly cache the results of ``factory`` calls. This would be a semantic change. iÿÿÿÿN(t filemixint PrintCatchercBs†eZd d d ed„Zeid„Zd„Zd„Z d„Z d„Z d„Z d„Z d eid„Zd eid „ZRS( cCsÕttd„|||gƒƒdjp td‚|o#| ptd|‚ti}n|o|i|_n;|o|i|_n$|o|i|_n |i |_||_ ||_ ||_ h|_ dS(NcSs |dj S(N(tNone(tx((sI/opt/alt/python37/lib/python3.7/site-packages/paste/util/threadedprint.pytGsis<You can only provide one of default, factory, or paramwriters:You cannot pass in both default (%r) and leave_stdout=True(tlentfiltertAssertionErrortsyststdoutt _writedefaultt _defaultfunct _writefactoryt _writeparamt _writeerrort_defaultt_factoryt _paramwritert _catchers(tselftdefaulttfactoryt paramwritert leave_stdout((sI/opt/alt/python37/lib/python3.7/site-packages/paste/util/threadedprint.pyt__init__Es&       cCsW|ƒiƒ}|i}|i|ƒp|i||ƒn||}|i|ƒdS(N(tgetNameRthas_keyR twrite(Rtvt currentThreadtnametcatcherstcatcher((sI/opt/alt/python37/lib/python3.7/site-packages/paste/util/threadedprint.pyR\s   cGsQtiƒiƒ}|i}||jo|ii|Œn||i|ŒdS(N(t threadingRRRRtseek(RtargsRR((sI/opt/alt/python37/lib/python3.7/site-packages/paste/util/threadedprint.pyR"es   cGsQtiƒiƒ}|i}||jo|ii|Œn||i|ŒdS(N(R!RRRRtread(RR#RR((sI/opt/alt/python37/lib/python3.7/site-packages/paste/util/threadedprint.pyR$ns   cCs|ii|ƒdS(N(RR(RRR((sI/opt/alt/python37/lib/python3.7/site-packages/paste/util/threadedprint.pyR wscCs|i|ƒi|ƒdS(N(RR(RRR((sI/opt/alt/python37/lib/python3.7/site-packages/paste/util/threadedprint.pyR zscCs|i||ƒdS(N(R(RRR((sI/opt/alt/python37/lib/python3.7/site-packages/paste/util/threadedprint.pyR }scCstptd|‚dS(Ns8There is no PrintCatcher output stream for the thread %r(tFalseR(RRR((sI/opt/alt/python37/lib/python3.7/site-packages/paste/util/threadedprint.pyR€s cCs1|djo|ƒiƒ}n||i|=s   P    8