Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/twisted/python/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/twisted/python/__pycache__/runtime.cpython-310.pyc
o

�b$�@svgd�ZddlZddlZddlZddlmZddlmZdefdd�Z	ddd	d
d
d�Z
Gdd
�d
�Ze�Ze�
�ZdS))�seconds�shortPythonVersion�Platform�platform�platformType�N)�time)�Optional�returncCsdtjdd�S)z?
    Returns the Python version as a dot-separated string.
    z%s.%s.%sN�)�sys�version_info�r
r
�8/usr/lib/python3/dist-packages/twisted/python/runtime.pyrsr�win32�posix�java)�nt�cerrzorg.python.modules.osc@s�eZdZUdZe�ej�Ze	e
ed<ee
�Z
ejZ	d!de	e
de	e
ddfdd�Zdefd	d
�Zde	e
fdd�Zdefd
d�Zdefdd�Zdefdd�Zdefdd�Zdefdd�Zd"de
defdd�Zdefdd�Zdefdd�Zdefdd �ZdS)#rzC
    Gives us information about the platform we're running on.
    �typeN�namerr	cCs*|dur
t�|�|_|dur||_dSdS)N)�knownPlatforms�getr�	_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.
        N�r�rr
r
r�isKnown4�
zPlatform.isKnowncCs|jS)zX
        Get platform type.

        @return: Either 'posix', 'win32' or 'java'
        rrr
r
r�getType<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
r�isMacOSXDrzPlatform.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)�warnings�warn�DeprecationWarning�	isWindowsrr
r
r�isWinNTLs
�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.isWindowscCstjdkot��jdkS)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�)rr�getwindowsversion�majorrr
r
r�isVistagszPlatform.isVistacCs|j�d�S)z�
        Check if current platform is Linux.

        @return: C{True} if the current platform has been detected as Linux.
        �linux)r�
startswithrr
r
r�isLinuxoszPlatform.isLinux�/proc/1/cgroup�_initCGroupLocationcCsn|��sdSddlm}||�}|��r5dd�|���d�D�}|D]}t|�dkr4|d�d	�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|]}|�d��qS)�:)�split)�.0�xr
r
r�
<listcomp>�s
�z%Platform.isDocker.<locals>.<listcomp>�
r
r"s/docker/T)r/�twisted.python.filepathr2�exists�
getContentr4�lenr.)rr1r2�initCGroups�
controlGroups�groupr
r
r�isDockerws��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'�os�symlink�AttributeErrorrr
r
r�_supportsSymlinks�s��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
r�supportsThreads�s
�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)�INotifyError�initFT)�twisted.python._inotifyrHrIrFrA�close)rrHrIr
r
r�supportsINotify�s���zPlatform.supportsINotify)NN)r0)�__name__�
__module__�__qualname__�__doc__rrrArrr�str�__annotations__�staticmethodrrrrr�boolrrr!r(r'r,r/r@rDrGrLr
r
r
rr#s0
���
�	
r)�__all__rArr$rr�typingrrQrrrrrrr
r
r
r�<module>s"�	)

Spamworldpro Mini