✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ beluga.o2switch.net ​🇻​♯➤ 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 185.154.139.77 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.84
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/alt/python37/lib64/python3.7/site-packages/twisted/python//runtime.py
# -*- test-case-name: twisted.python.test.test_runtime -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.

from __future__ import division, absolute_import

import os
import sys
import time
import warnings

from twisted.python._oldstyle import _oldStyle



def shortPythonVersion():
    """
    Returns the Python version as a dot-separated string.
    """
    return "%s.%s.%s" % sys.version_info[:3]



knownPlatforms = {
    'nt': 'win32',
    'ce': 'win32',
    'posix': 'posix',
    'java': 'java',
    'org.python.modules.os': 'java',
    }



_timeFunctions = {
    #'win32': time.clock,
    'win32': time.time,
    }



@_oldStyle
class Platform:
    """
    Gives us information about the platform we're running on.
    """

    type = knownPlatforms.get(os.name)
    seconds = staticmethod(_timeFunctions.get(type, time.time))
    _platform = sys.platform

    def __init__(self, name=None, platform=None):
        if name is not None:
            self.type = knownPlatforms.get(name)
            self.seconds = _timeFunctions.get(self.type, time.time)
        if platform is not None:
            self._platform = platform


    def isKnown(self):
        """
        Do we know about this platform?

        @return: Boolean indicating whether this is a known platform or not.
        @rtype: C{bool}
        """
        return self.type != None


    def getType(self):
        """
        Get platform type.

        @return: Either 'posix', 'win32' or 'java'
        @rtype: C{str}
        """
        return self.type


    def isMacOSX(self):
        """
        Check if current platform is macOS.

        @return: C{True} if the current platform has been detected as macOS.
        @rtype: C{bool}
        """
        return self._platform == "darwin"


    def isWinNT(self):
        """
        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.
        @rtype: C{bool}
        """
        warnings.warn(
                "twisted.python.runtime.Platform.isWinNT was deprecated in "
                "Twisted 13.0. Use Platform.isWindows instead.",
                DeprecationWarning, stacklevel=2)
        return self.isWindows()


    def isWindows(self):
        """
        Are we running in Windows?

        @return: C{True} if the current platform has been detected as
            Windows.
        @rtype: C{bool}
        """
        return self.getType() == 'win32'


    def isVista(self):
        """
        Check if current platform is Windows Vista or Windows Server 2008.

        @return: C{True} if the current platform has been detected as Vista
        @rtype: C{bool}
        """
        if getattr(sys, "getwindowsversion", None) is not None:
            return sys.getwindowsversion()[0] == 6
        else:
            return False


    def isLinux(self):
        """
        Check if current platform is Linux.

        @return: C{True} if the current platform has been detected as Linux.
        @rtype: C{bool}
        """
        return self._platform.startswith("linux")


    def isDocker(self, _initCGroupLocation="/proc/1/cgroup"):
        """
        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.
        @rtype: C{bool}
        """
        if not self.isLinux():
            return False

        from twisted.python.filepath import FilePath

        # Ask for the cgroups of init (pid 1)
        initCGroups = FilePath(_initCGroupLocation)
        if initCGroups.exists():
            # The cgroups file looks like "2:cpu:/". The third element will
            # begin with /docker if it is inside a Docker container.
            controlGroups = [x.split(b":")
                             for x in initCGroups.getContent().split(b"\n")]

            for group in controlGroups:
                if len(group) == 3 and group[2].startswith(b"/docker/"):
                    # If it starts with /docker/, we're in a docker container
                    return True

        return False


    def _supportsSymlinks(self):
        """
        Check for symlink support usable for Twisted's purposes.

        @return: C{True} if symlinks are supported on the current platform,
                 otherwise C{False}.
        @rtype: L{bool}
        """
        if self.isWindows():
            # We do the isWindows() check as newer Pythons support the symlink
            # support in Vista+, but only if you have some obscure permission
            # (SeCreateSymbolicLinkPrivilege), which can only be given on
            # platforms with msc.exe (so, Business/Enterprise editions).
            # This uncommon requirement makes the Twisted test suite test fail
            # in 99.99% of cases as general users don't have permission to do
            # it, even if there is "symlink support".
            return False
        else:
            # If we're not on Windows, check for existence of os.symlink.
            try:
                os.symlink
            except AttributeError:
                return False
            else:
                return True


    def supportsThreads(self):
        """
        Can threads be created?

        @return: C{True} if the threads are supported on the current platform.
        @rtype: C{bool}
        """
        try:
            import threading
            return threading is not None # shh pyflakes
        except ImportError:
            return False


    def supportsINotify(self):
        """
        Return C{True} if we can use the inotify API on this platform.

        @since: 10.1
        """
        try:
            from twisted.python._inotify import INotifyError, init
        except ImportError:
            return False

        try:
            os.close(init())
        except INotifyError:
            return False
        return True


platform = Platform()
platformType = platform.getType()
seconds = platform.seconds


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
1 Jan 1970 12.00 AM
root / root
0
__pycache__
--
25 Jul 2024 8.43 AM
root / linksafe
0755
_pydoctortemplates
--
25 Jul 2024 8.43 AM
root / linksafe
0755
test
--
25 Jul 2024 8.43 AM
root / linksafe
0755
__init__.py
0.658 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
_appdirs.py
0.77 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
_inotify.py
3.374 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
_oldstyle.py
2.532 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
_release.py
18.34 KB
18 Mar 2020 8.27 AM
root / linksafe
0644
_setup.py
13.946 KB
8 Mar 2020 10.44 AM
root / linksafe
0644
_shellcomp.py
24.248 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
_textattributes.py
8.866 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
_tzhelper.py
3.117 KB
26 May 2019 5.43 AM
root / linksafe
0644
_url.py
0.247 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
compat.py
23.196 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
components.py
13.92 KB
8 Mar 2020 10.44 AM
root / linksafe
0644
constants.py
0.531 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
context.py
3.93 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
deprecate.py
26.316 KB
18 Dec 2019 3.37 AM
root / linksafe
0644
failure.py
26.918 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
fakepwd.py
5.994 KB
26 May 2019 5.43 AM
root / linksafe
0644
filepath.py
57.507 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
formmethod.py
11.191 KB
26 May 2019 5.43 AM
root / linksafe
0644
htmlizer.py
3.458 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
lockfile.py
7.537 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
log.py
21.945 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
logfile.py
9.847 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
modules.py
26.505 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
monkey.py
2.175 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
procutils.py
1.386 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
randbytes.py
3.866 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
rebuild.py
9.051 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
reflect.py
19.021 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
release.py
1.164 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
roots.py
7.23 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
runtime.py
6.07 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
sendmsg.py
3.34 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
shortcut.py
2.2 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
syslog.py
3.643 KB
26 May 2019 5.43 AM
root / linksafe
0644
systemd.py
2.768 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
text.py
5.354 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
threadable.py
3.22 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
threadpool.py
9.609 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
twisted-completion.zsh
1.339 KB
15 Jun 2019 9.59 PM
root / linksafe
0644
url.py
0.238 KB
26 May 2019 5.43 AM
root / linksafe
0644
urlpath.py
8.871 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
usage.py
34.182 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
util.py
27.276 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
versions.py
0.314 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
win32.py
4.216 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
zippath.py
9.021 KB
18 Dec 2019 3.08 AM
root / linksafe
0644
zipstream.py
9.528 KB
18 Dec 2019 3.08 AM
root / linksafe
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF