/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__/runtime.cpython-310.pyc (5617B)
o b$@svgdZddlZddlZddlZddlmZddlmZdefddZ ddd d d d Z Gd d d Z e Z e ZdS))secondsshortPythonVersionPlatformplatform platformTypeN)time)OptionalreturncCsdtjddS)z? Returns the Python version as a dot-separated string. z%s.%s.%sN)sys version_infor r 8/usr/lib/python3/dist-packages/twisted/python/runtime.pyrsrwin32posixjava)ntcerrzorg.python.modules.osc@seZdZUdZeejZe e e d<e e Z ejZ d!de e de e ddfddZdefd d Zde e fd d Zdefd dZdefddZdefddZdefddZdefddZd"de defddZdefddZdefddZdefdd ZdS)#rzC Gives us information about the platform we're running on. typeNnamerr cCs*|dur t||_|dur||_dSdS)N)knownPlatformsgetr _platform)selfrrr r r__init__,s   zPlatform.__init__cCs |jdkS)z Do we know about this platform? @return: Boolean indicating whether this is a known platform or not. Nrrr r risKnown4 zPlatform.isKnowncCs|jS)zX Get platform type. @return: Either 'posix', 'win32' or 'java' rrr r rgetType<szPlatform.getTypecCs |jdkS)z Check if current platform is macOS. @return: C{True} if the current platform has been detected as macOS. darwin)rrr r risMacOSXDrzPlatform.isMacOSXcCstjdtdd|S)a  Are we running in Windows NT? This is deprecated and always returns C{True} on win32 because Twisted only supports Windows NT-derived platforms at this point. @return: C{True} if the current platform has been detected as Windows NT. zgtwisted.python.runtime.Platform.isWinNT was deprecated in Twisted 13.0. Use Platform.isWindows instead.) stacklevel)warningswarnDeprecationWarning isWindowsrr r risWinNTLs  zPlatform.isWinNTcCs |dkS)z Are we running in Windows? @return: C{True} if the current platform has been detected as Windows. r)rrr r rr'^s zPlatform.isWindowscCstjdko tjdkS)z Check if current platform is Windows Vista or Windows Server 2008. @return: C{True} if the current platform has been detected as Vista r)r rgetwindowsversionmajorrr r risVistagszPlatform.isVistacCs |jdS)z Check if current platform is Linux. @return: C{True} if the current platform has been detected as Linux. linux)r startswithrr r risLinuxos zPlatform.isLinux/proc/1/cgroup_initCGroupLocationcCsn|sdSddlm}||}|r5dd|dD}|D]}t|dkr4|dd r4d Sq"dS) z Check if the current platform is Linux in a Docker container. @return: C{True} if the current platform has been detected as Linux inside a Docker container. Fr)FilePathcSsg|]}|dqS):)split).0xr r r s z%Platform.isDocker.. r r"s/docker/T)r/twisted.python.filepathr2exists getContentr4lenr.)rr1r2 initCGroups controlGroupsgroupr r risDockerws  zPlatform.isDockercCs.|rdSztjWdStyYdSw)z Check for symlink support usable for Twisted's purposes. @return: C{True} if symlinks are supported on the current platform, otherwise C{False}. FT)r'ossymlinkAttributeErrorrr r r_supportsSymlinkss zPlatform._supportsSymlinkscCs(z ddl}|duWStyYdSw)zy Can threads be created? @return: C{True} if the threads are supported on the current platform. rNF) threading ImportError)rrEr r rsupportsThreadss   zPlatform.supportsThreadscCsRz ddlm}m}Wn tyYdSwz t|WdS|y(YdSw)zf Return C{True} if we can use the inotify API on this platform. @since: 10.1 r) INotifyErrorinitFT)twisted.python._inotifyrHrIrFrAclose)rrHrIr r rsupportsINotifys  zPlatform.supportsINotify)NN)r0)__name__ __module__ __qualname____doc__rrrArrrstr__annotations__ staticmethodrr rrrboolrrr!r(r'r,r/r@rDrGrLr r r rr#s0    r)__all__rAr r$rrtypingrrQrrrrrrr r r rs"   )