/usr/lib/python3/dist-packages/twisted/python/__pycache__
NameSizeModeActions
compat.cpython-310.pyc153980644editdlrm
components.cpython-310.pyc143640644editdlrm
constants.cpython-310.pyc4680644editdlrm
context.cpython-310.pyc46570644editdlrm
deprecate.cpython-310.pyc252210644editdlrm
failure.cpython-310.pyc189600644editdlrm
fakepwd.cpython-310.pyc72920644editdlrm
filepath.cpython-310.pyc520500644editdlrm
formmethod.cpython-310.pyc127170644editdlrm
htmlizer.cpython-310.pyc35820644editdlrm
lockfile.cpython-310.pyc51380644editdlrm
log.cpython-310.pyc230160644editdlrm
logfile.cpython-310.pyc104590644editdlrm
modules.cpython-310.pyc254690644editdlrm
monkey.cpython-310.pyc23150644editdlrm
procutils.cpython-310.pyc13890644editdlrm
randbytes.cpython-310.pyc37350644editdlrm
rebuild.cpython-310.pyc55780644editdlrm
reflect.cpython-310.pyc191270644editdlrm
release.cpython-310.pyc15250644editdlrm
roots.cpython-310.pyc89330644editdlrm
runtime.cpython-310.pyc56170644editdlrm
sendmsg.cpython-310.pyc25800644editdlrm
shortcut.cpython-310.pyc24640644editdlrm
syslog.cpython-310.pyc33680644editdlrm
systemd.cpython-310.pyc30510644editdlrm
text.cpython-310.pyc42690644editdlrm
threadable.cpython-310.pyc35200644editdlrm
threadpool.cpython-310.pyc105020644editdlrm
url.cpython-310.pyc2790644editdlrm
urlpath.cpython-310.pyc92820644editdlrm
usage.cpython-310.pyc286350644editdlrm
util.cpython-310.pyc279390644editdlrm
versions.cpython-310.pyc3560644editdlrm
win32.cpython-310.pyc48410644editdlrm
zippath.cpython-310.pyc91460644editdlrm
zipstream.cpython-310.pyc88260644editdlrm
_appdirs.cpython-310.pyc8620644editdlrm
_inotify.cpython-310.pyc25800644editdlrm
_pydoctor.cpython-310.pyc57500644editdlrm
_release.cpython-310.pyc181330644editdlrm
_shellcomp.cpython-310.pyc188550644editdlrm
_textattributes.cpython-310.pyc106420644editdlrm
_tzhelper.cpython-310.pyc33850644editdlrm
_url.cpython-310.pyc2690644editdlrm
__init__.cpython-310.pyc5460644editdlrm
Edit: /usr/lib/python3/dist-packages/twisted/python/__pycache__/threadable.cpython-310.pyc (3520B)
o ¯bÿ ã@sÀdZddlmZGdd„dƒZdd„Zde_dd „Zd d „Zd d „Zdd„Z ddd„Z e ƒZ dd„Z dd„Zdd„ZdadadadazddlZWn eySdZYnweZe dƒgd¢ZdS)zT A module to provide some very basic threading primitives, such as synchronization. é©Úwrapsc@seZdZdZdd„ZdS)Ú DummyLockzF Hack to allow locks to be unpickled on an unthreaded system. cCótdfS©N©©Ú unpickle_lock©Úselfrrú;/usr/lib/python3/dist-packages/twisted/python/threadable.pyÚ __reduce__ózDummyLock.__reduce__N)Ú__name__Ú __module__Ú __qualname__Ú__doc__r rrrr rs rcCstdurtƒStƒS©N)ÚthreadingmoduleÚXLockrrrrr r sr TcCs>d|jvrt ¡d|jvrtƒ|jd<t ¡|j ¡dS)NÚ_threadable_lock)Ú__dict__Ú_synchLockCreatorÚacquirerÚreleaserr rrr Ú _synchPre!s   rcCs|j ¡dSr)rrr rrr Ú _synchPost*srcstˆƒ‡fdd„ƒ}|S)Ncs4t|ƒzˆ|g|¢Ri|¤ŽWt|ƒSt|ƒwr)rr)r ÚargsÚkwargs©Úfunctionrr Úsync/sz_sync..syncr)Úklassr r!rrr Ú_sync.sr#cGsBtdur|D]}|jD]}t||j|ƒ}t|||ƒq qdSdS)a& Make all methods listed in each class' synchronized attribute synchronized. The synchronized attribute should be a list of strings, consisting of the names of methods that must be synchronized. If we are running in threaded mode these methods will be wrapped with a lock. N)rÚ synchronizedr#rÚsetattr)Úklassesr"Ú methodNamer!rrr Ú synchronize:s þþr(écCsN|rtstdurdaGdd„dtjƒatƒadStdƒ‚dStr$tdƒ‚ dS)zbInitialize threading. Don't bother calling this. If it needs to happen, it will happen. NTc@seZdZdd„ZdS)rcSrrrr rrr r VrzXLock.__reduce__N)rrrr rrrr rUs rz:Cannot initialize threading, platform lacks thread supportzCannot uninitialize threads)ÚthreadedrÚ_RLockrrÚ RuntimeError)Ú with_threadsrrr ÚinitIs ÿör.cCstdurtSt ¡jSr)rÚ_dummyIDÚcurrent_threadÚidentrrrr Ú getThreadIDhs r2cCs ttƒkS)zCAre we in the thread responsible for I/O requests (the event loop)?)ÚioThreadr2rrrr Ú isInIOThreadns r4cCs tƒadS)z8Mark the current thread as responsible for I/O requests.N)r2r3rrrr ÚregisterAsIOThreadss r5NF)r4r5r2r)r))rÚ functoolsrrr Ú__safe_for_unpickling__rrr#r(r.Úobjectr/r2r4r5r3r*rrÚ threadingÚ_threadingmoduleÚ ImportErrorrÚ__all__rrrr Ús4      ÿ