GRAYBYTE WORDPRESS FILE MANAGER7492

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/python33/lib64/python3.3/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/python33/lib64/python3.3//abc.py
# Copyright 2007 Google, Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.

"""Abstract Base Classes (ABCs) according to PEP 3119."""

from _weakrefset import WeakSet

def abstractmethod(funcobj):
    """A decorator indicating abstract methods.

    Requires that the metaclass is ABCMeta or derived from it.  A
    class that has a metaclass derived from ABCMeta cannot be
    instantiated unless all of its abstract methods are overridden.
    The abstract methods can be called using any of the normal
    'super' call mechanisms.

    Usage:

        class C(metaclass=ABCMeta):
            @abstractmethod
            def my_abstract_method(self, ...):
                ...
    """
    funcobj.__isabstractmethod__ = True
    return funcobj


class abstractclassmethod(classmethod):
    """
    A decorator indicating abstract classmethods.

    Similar to abstractmethod.

    Usage:

        class C(metaclass=ABCMeta):
            @abstractclassmethod
            def my_abstract_classmethod(cls, ...):
                ...

    'abstractclassmethod' is deprecated. Use 'classmethod' with
    'abstractmethod' instead.
    """

    __isabstractmethod__ = True

    def __init__(self, callable):
        callable.__isabstractmethod__ = True
        super().__init__(callable)


class abstractstaticmethod(staticmethod):
    """
    A decorator indicating abstract staticmethods.

    Similar to abstractmethod.

    Usage:

        class C(metaclass=ABCMeta):
            @abstractstaticmethod
            def my_abstract_staticmethod(...):
                ...

    'abstractstaticmethod' is deprecated. Use 'staticmethod' with
    'abstractmethod' instead.
    """

    __isabstractmethod__ = True

    def __init__(self, callable):
        callable.__isabstractmethod__ = True
        super().__init__(callable)


class abstractproperty(property):
    """
    A decorator indicating abstract properties.

    Requires that the metaclass is ABCMeta or derived from it.  A
    class that has a metaclass derived from ABCMeta cannot be
    instantiated unless all of its abstract properties are overridden.
    The abstract properties can be called using any of the normal
    'super' call mechanisms.

    Usage:

        class C(metaclass=ABCMeta):
            @abstractproperty
            def my_abstract_property(self):
                ...

    This defines a read-only property; you can also define a read-write
    abstract property using the 'long' form of property declaration:

        class C(metaclass=ABCMeta):
            def getx(self): ...
            def setx(self, value): ...
            x = abstractproperty(getx, setx)

    'abstractproperty' is deprecated. Use 'property' with 'abstractmethod'
    instead.
    """

    __isabstractmethod__ = True


class ABCMeta(type):

    """Metaclass for defining Abstract Base Classes (ABCs).

    Use this metaclass to create an ABC.  An ABC can be subclassed
    directly, and then acts as a mix-in class.  You can also register
    unrelated concrete classes (even built-in classes) and unrelated
    ABCs as 'virtual subclasses' -- these and their descendants will
    be considered subclasses of the registering ABC by the built-in
    issubclass() function, but the registering ABC won't show up in
    their MRO (Method Resolution Order) nor will method
    implementations defined by the registering ABC be callable (not
    even via super()).

    """

    # A global counter that is incremented each time a class is
    # registered as a virtual subclass of anything.  It forces the
    # negative cache to be cleared before its next use.
    _abc_invalidation_counter = 0

    def __new__(mcls, name, bases, namespace):
        cls = super().__new__(mcls, name, bases, namespace)
        # Compute set of abstract method names
        abstracts = {name
                     for name, value in namespace.items()
                     if getattr(value, "__isabstractmethod__", False)}
        for base in bases:
            for name in getattr(base, "__abstractmethods__", set()):
                value = getattr(cls, name, None)
                if getattr(value, "__isabstractmethod__", False):
                    abstracts.add(name)
        cls.__abstractmethods__ = frozenset(abstracts)
        # Set up inheritance registry
        cls._abc_registry = WeakSet()
        cls._abc_cache = WeakSet()
        cls._abc_negative_cache = WeakSet()
        cls._abc_negative_cache_version = ABCMeta._abc_invalidation_counter
        return cls

    def register(cls, subclass):
        """Register a virtual subclass of an ABC.

        Returns the subclass, to allow usage as a class decorator.
        """
        if not isinstance(subclass, type):
            raise TypeError("Can only register classes")
        if issubclass(subclass, cls):
            return subclass  # Already a subclass
        # Subtle: test for cycles *after* testing for "already a subclass";
        # this means we allow X.register(X) and interpret it as a no-op.
        if issubclass(cls, subclass):
            # This would create a cycle, which is bad for the algorithm below
            raise RuntimeError("Refusing to create an inheritance cycle")
        cls._abc_registry.add(subclass)
        ABCMeta._abc_invalidation_counter += 1  # Invalidate negative cache
        return subclass

    def _dump_registry(cls, file=None):
        """Debug helper to print the ABC registry."""
        print("Class: %s.%s" % (cls.__module__, cls.__name__), file=file)
        print("Inv.counter: %s" % ABCMeta._abc_invalidation_counter, file=file)
        for name in sorted(cls.__dict__.keys()):
            if name.startswith("_abc_"):
                value = getattr(cls, name)
                print("%s: %r" % (name, value), file=file)

    def __instancecheck__(cls, instance):
        """Override for isinstance(instance, cls)."""
        # Inline the cache checking
        subclass = instance.__class__
        if subclass in cls._abc_cache:
            return True
        subtype = type(instance)
        if subtype is subclass:
            if (cls._abc_negative_cache_version ==
                ABCMeta._abc_invalidation_counter and
                subclass in cls._abc_negative_cache):
                return False
            # Fall back to the subclass check.
            return cls.__subclasscheck__(subclass)
        return any(cls.__subclasscheck__(c) for c in {subclass, subtype})

    def __subclasscheck__(cls, subclass):
        """Override for issubclass(subclass, cls)."""
        # Check cache
        if subclass in cls._abc_cache:
            return True
        # Check negative cache; may have to invalidate
        if cls._abc_negative_cache_version < ABCMeta._abc_invalidation_counter:
            # Invalidate the negative cache
            cls._abc_negative_cache = WeakSet()
            cls._abc_negative_cache_version = ABCMeta._abc_invalidation_counter
        elif subclass in cls._abc_negative_cache:
            return False
        # Check the subclass hook
        ok = cls.__subclasshook__(subclass)
        if ok is not NotImplemented:
            assert isinstance(ok, bool)
            if ok:
                cls._abc_cache.add(subclass)
            else:
                cls._abc_negative_cache.add(subclass)
            return ok
        # Check if it's a direct subclass
        if cls in getattr(subclass, '__mro__', ()):
            cls._abc_cache.add(subclass)
            return True
        # Check if it's a subclass of a registered class (recursive)
        for rcls in cls._abc_registry:
            if issubclass(subclass, rcls):
                cls._abc_cache.add(subclass)
                return True
        # Check if it's a subclass of a subclass (recursive)
        for scls in cls.__subclasses__():
            if issubclass(subclass, scls):
                cls._abc_cache.add(subclass)
                return True
        # No dice; update negative cache
        cls._abc_negative_cache.add(subclass)
        return False

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 20 2024 08:33:11
root / root
0755
__pycache__
--
May 20 2024 08:31:19
root / linksafe
0755
collections
--
May 20 2024 08:31:19
root / linksafe
0755
concurrent
--
May 20 2024 08:31:19
root / linksafe
0755
config-3.3m
--
May 20 2024 08:33:11
root / linksafe
0755
ctypes
--
May 20 2024 08:31:19
root / linksafe
0755
curses
--
May 20 2024 08:31:19
root / linksafe
0755
dbm
--
May 20 2024 08:31:19
root / linksafe
0755
distutils
--
May 20 2024 08:31:19
root / linksafe
0755
email
--
May 20 2024 08:31:19
root / linksafe
0755
encodings
--
May 20 2024 08:31:19
root / linksafe
0755
html
--
May 20 2024 08:31:19
root / linksafe
0755
http
--
May 20 2024 08:31:19
root / linksafe
0755
idlelib
--
May 20 2024 08:31:19
root / linksafe
0755
importlib
--
May 20 2024 08:31:19
root / linksafe
0755
json
--
May 20 2024 08:31:19
root / linksafe
0755
lib-dynload
--
May 20 2024 08:31:19
root / linksafe
0755
lib2to3
--
May 20 2024 08:31:19
root / linksafe
0755
logging
--
May 20 2024 08:31:19
root / linksafe
0755
multiprocessing
--
May 20 2024 08:31:19
root / linksafe
0755
plat-linux
--
May 20 2024 08:31:19
root / linksafe
0755
pydoc_data
--
May 20 2024 08:31:19
root / linksafe
0755
site-packages
--
May 20 2024 08:31:19
root / linksafe
0755
sqlite3
--
May 20 2024 08:31:19
root / linksafe
0755
test
--
May 20 2024 08:31:19
root / linksafe
0755
unittest
--
May 20 2024 08:31:19
root / linksafe
0755
urllib
--
May 20 2024 08:31:19
root / linksafe
0755
venv
--
May 20 2024 08:31:19
root / linksafe
0755
wsgiref
--
May 20 2024 08:31:19
root / linksafe
0755
xml
--
May 20 2024 08:31:19
root / linksafe
0755
xmlrpc
--
May 20 2024 08:31:19
root / linksafe
0755
__future__.py
4.477 KB
April 17 2024 16:58:21
root / linksafe
0644
__phello__.foo.py
0.063 KB
April 17 2024 16:58:20
root / linksafe
0644
_compat_pickle.py
4.236 KB
April 17 2024 16:58:19
root / linksafe
0644
_dummy_thread.py
4.657 KB
April 17 2024 16:58:20
root / linksafe
0644
_markupbase.py
14.256 KB
April 17 2024 16:58:15
root / linksafe
0644
_osx_support.py
18.413 KB
April 17 2024 16:58:20
root / linksafe
0644
_pyio.py
71.196 KB
April 17 2024 16:58:17
root / linksafe
0644
_strptime.py
21.166 KB
April 17 2024 16:58:20
root / linksafe
0644
_sysconfigdata.py
22.307 KB
April 17 2024 16:58:20
root / linksafe
0644
_threading_local.py
7.236 KB
April 17 2024 16:58:15
root / linksafe
0644
_weakrefset.py
5.571 KB
April 17 2024 16:58:14
root / linksafe
0644
abc.py
7.868 KB
April 17 2024 16:58:15
root / linksafe
0644
aifc.py
30.326 KB
April 17 2024 16:58:21
root / linksafe
0644
antigravity.py
0.464 KB
April 17 2024 16:58:16
root / linksafe
0644
argparse.py
86.981 KB
April 17 2024 16:58:20
root / linksafe
0644
ast.py
11.857 KB
April 17 2024 16:58:20
root / linksafe
0644
asynchat.py
11.316 KB
April 17 2024 16:58:19
root / linksafe
0644
asyncore.py
20.267 KB
April 17 2024 16:58:21
root / linksafe
0644
base64.py
13.658 KB
April 17 2024 16:58:17
root / linksafe
0755
bdb.py
21.381 KB
April 17 2024 16:58:19
root / linksafe
0644
binhex.py
13.387 KB
April 17 2024 16:58:14
root / linksafe
0644
bisect.py
2.534 KB
April 17 2024 16:58:13
root / linksafe
0644
bz2.py
18.04 KB
April 17 2024 16:58:20
root / linksafe
0644
cProfile.py
6.212 KB
April 17 2024 16:58:14
root / linksafe
0755
calendar.py
22.402 KB
April 17 2024 16:58:20
root / linksafe
0644
cgi.py
34.721 KB
April 17 2024 16:58:20
root / linksafe
0755
cgitb.py
11.759 KB
April 17 2024 16:58:21
root / linksafe
0644
chunk.py
5.251 KB
April 17 2024 16:58:17
root / linksafe
0644
cmd.py
14.512 KB
April 17 2024 16:58:14
root / linksafe
0644
code.py
9.795 KB
April 17 2024 16:58:16
root / linksafe
0644
codecs.py
35.113 KB
April 17 2024 16:58:15
root / linksafe
0644
codeop.py
5.854 KB
April 17 2024 16:58:14
root / linksafe
0644
colorsys.py
3.604 KB
April 17 2024 16:58:15
root / linksafe
0644
compileall.py
9.515 KB
April 17 2024 16:58:14
root / linksafe
0644
configparser.py
48.278 KB
April 17 2024 16:58:15
root / linksafe
0644
contextlib.py
8.911 KB
April 17 2024 16:58:14
root / linksafe
0644
copy.py
8.78 KB
April 17 2024 16:58:15
root / linksafe
0644
copyreg.py
6.456 KB
April 17 2024 16:58:20
root / linksafe
0644
crypt.py
1.835 KB
April 17 2024 16:58:14
root / linksafe
0644
csv.py
15.806 KB
April 17 2024 16:58:15
root / linksafe
0644
datetime.py
73.197 KB
April 17 2024 16:58:21
root / linksafe
0644
decimal.py
223.201 KB
April 17 2024 16:58:19
root / linksafe
0644
difflib.py
80.585 KB
April 17 2024 16:58:17
root / linksafe
0644
dis.py
9.896 KB
April 17 2024 16:58:15
root / linksafe
0644
doctest.py
100.521 KB
April 17 2024 16:58:15
root / linksafe
0644
dummy_threading.py
2.749 KB
April 17 2024 16:58:14
root / linksafe
0644
filecmp.py
9.372 KB
April 17 2024 16:58:15
root / linksafe
0644
fileinput.py
13.922 KB
April 17 2024 16:58:17
root / linksafe
0644
fnmatch.py
3.089 KB
April 17 2024 16:58:15
root / linksafe
0644
formatter.py
14.58 KB
April 17 2024 16:58:15
root / linksafe
0644
fractions.py
22.493 KB
April 17 2024 16:58:14
root / linksafe
0644
ftplib.py
39.31 KB
April 17 2024 16:58:15
root / linksafe
0644
functools.py
13.277 KB
April 17 2024 16:58:21
root / linksafe
0644
genericpath.py
3.021 KB
April 17 2024 16:58:21
root / linksafe
0644
getopt.py
7.313 KB
April 17 2024 16:58:20
root / linksafe
0644
getpass.py
5.657 KB
April 17 2024 16:58:14
root / linksafe
0644
gettext.py
20.153 KB
April 17 2024 16:58:20
root / linksafe
0644
glob.py
2.771 KB
April 17 2024 16:58:14
root / linksafe
0644
gzip.py
23.831 KB
April 17 2024 16:58:20
root / linksafe
0644
hashlib.py
6.048 KB
April 17 2024 16:58:21
root / linksafe
0644
heapq.py
17.575 KB
April 17 2024 16:58:13
root / linksafe
0644
hmac.py
4.336 KB
April 17 2024 16:58:17
root / linksafe
0644
imaplib.py
48.937 KB
April 17 2024 16:58:20
root / linksafe
0644
imghdr.py
3.445 KB
April 17 2024 16:58:20
root / linksafe
0644
imp.py
9.499 KB
April 17 2024 16:58:15
root / linksafe
0644
inspect.py
77.109 KB
April 17 2024 16:58:19
root / linksafe
0644
io.py
3.203 KB
April 17 2024 16:58:15
root / linksafe
0644
ipaddress.py
68.655 KB
April 17 2024 16:58:20
root / linksafe
0644
keyword.py
2.012 KB
April 17 2024 16:58:20
root / linksafe
0755
linecache.py
3.773 KB
April 17 2024 16:58:16
root / linksafe
0644
locale.py
91.03 KB
April 17 2024 16:58:19
root / linksafe
0644
lzma.py
17.045 KB
April 17 2024 16:58:20
root / linksafe
0644
macpath.py
5.485 KB
April 17 2024 16:58:15
root / linksafe
0644
macurl2path.py
2.668 KB
April 17 2024 16:58:15
root / linksafe
0644
mailbox.py
77.239 KB
April 17 2024 16:58:19
root / linksafe
0644
mailcap.py
7.263 KB
April 17 2024 16:58:14
root / linksafe
0644
mimetypes.py
20.249 KB
April 17 2024 16:58:19
root / linksafe
0644
modulefinder.py
22.654 KB
April 17 2024 16:58:14
root / linksafe
0644
netrc.py
5.612 KB
April 17 2024 16:58:17
root / linksafe
0644
nntplib.py
41.783 KB
April 17 2024 16:58:13
root / linksafe
0644
ntpath.py
19.958 KB
April 17 2024 16:58:14
root / linksafe
0644
nturl2path.py
2.34 KB
April 17 2024 16:58:20
root / linksafe
0644
numbers.py
10.154 KB
April 17 2024 16:58:20
root / linksafe
0644
opcode.py
4.979 KB
April 17 2024 16:58:21
root / linksafe
0644
optparse.py
58.932 KB
April 17 2024 16:58:20
root / linksafe
0644
os.py
33.964 KB
April 17 2024 16:58:14
root / linksafe
0644
os2emxpath.py
4.55 KB
April 17 2024 16:58:15
root / linksafe
0644
pdb.py
59.231 KB
April 17 2024 16:58:16
root / linksafe
0755
pickle.py
46.736 KB
April 17 2024 16:58:17
root / linksafe
0644
pickletools.py
79.442 KB
April 17 2024 16:58:15
root / linksafe
0644
pipes.py
8.707 KB
April 17 2024 16:58:20
root / linksafe
0644
pkgutil.py
21.034 KB
April 17 2024 16:58:15
root / linksafe
0644
platform.py
49.553 KB
April 17 2024 16:58:15
root / linksafe
0755
plistlib.py
14.431 KB
April 17 2024 16:58:13
root / linksafe
0644
poplib.py
11.105 KB
April 17 2024 16:58:13
root / linksafe
0644
posixpath.py
13.92 KB
April 17 2024 16:58:16
root / linksafe
0644
pprint.py
12.402 KB
April 17 2024 16:58:15
root / linksafe
0644
profile.py
20.945 KB
April 17 2024 16:58:17
root / linksafe
0755
pstats.py
25.754 KB
April 17 2024 16:58:14
root / linksafe
0644
pty.py
4.937 KB
April 17 2024 16:58:14
root / linksafe
0644
py_compile.py
6.56 KB
April 17 2024 16:58:19
root / linksafe
0644
pyclbr.py
13.123 KB
April 17 2024 16:58:13
root / linksafe
0644
pydoc.py
99.262 KB
April 17 2024 16:58:15
root / linksafe
0755
queue.py
8.628 KB
April 17 2024 16:58:20
root / linksafe
0644
quopri.py
7.144 KB
April 17 2024 16:58:20
root / linksafe
0755
random.py
25.059 KB
April 17 2024 16:58:14
root / linksafe
0644
re.py
14.622 KB
April 17 2024 16:58:17
root / linksafe
0644
reprlib.py
4.99 KB
April 17 2024 16:58:15
root / linksafe
0644
rlcompleter.py
5.396 KB
April 17 2024 16:58:21
root / linksafe
0644
runpy.py
10.169 KB
April 17 2024 16:58:14
root / linksafe
0644
sched.py
6.249 KB
April 17 2024 16:58:19
root / linksafe
0644
shelve.py
8.05 KB
April 17 2024 16:58:20
root / linksafe
0644
shlex.py
11.232 KB
April 17 2024 16:58:21
root / linksafe
0644
shutil.py
38.229 KB
April 17 2024 16:58:20
root / linksafe
0644
site.py
21.456 KB
April 17 2024 16:58:19
root / linksafe
0644
smtpd.py
29.499 KB
April 17 2024 16:58:16
root / linksafe
0755
smtplib.py
37.13 KB
April 17 2024 16:58:14
root / linksafe
0755
sndhdr.py
6.073 KB
April 17 2024 16:58:20
root / linksafe
0644
socket.py
14.563 KB
April 17 2024 16:58:20
root / linksafe
0644
socketserver.py
23.629 KB
April 17 2024 16:58:21
root / linksafe
0644
sre_compile.py
15.962 KB
April 17 2024 16:58:14
root / linksafe
0644
sre_constants.py
7.062 KB
April 17 2024 16:58:14
root / linksafe
0644
sre_parse.py
29.504 KB
April 17 2024 16:58:16
root / linksafe
0644
ssl.py
23.904 KB
April 17 2024 16:58:19
root / linksafe
0644
stat.py
4.203 KB
April 17 2024 16:58:19
root / linksafe
0644
string.py
9.189 KB
April 17 2024 16:58:20
root / linksafe
0644
stringprep.py
12.614 KB
April 17 2024 16:58:17
root / linksafe
0644
struct.py
0.232 KB
April 17 2024 16:58:16
root / linksafe
0644
subprocess.py
65.994 KB
April 17 2024 16:58:14
root / linksafe
0644
sunau.py
17.112 KB
April 17 2024 16:58:15
root / linksafe
0644
symbol.py
2.003 KB
April 17 2024 16:58:14
root / linksafe
0755
symtable.py
7.21 KB
April 17 2024 16:58:20
root / linksafe
0644
sysconfig.py
24.584 KB
April 17 2024 16:58:20
root / linksafe
0644
tabnanny.py
11.143 KB
April 17 2024 16:58:20
root / linksafe
0755
tarfile.py
86.781 KB
April 17 2024 16:58:15
root / linksafe
0755
telnetlib.py
26.708 KB
April 17 2024 16:58:15
root / linksafe
0644
tempfile.py
22.474 KB
April 17 2024 16:58:14
root / linksafe
0644
textwrap.py
16.102 KB
April 17 2024 16:58:14
root / linksafe
0644
this.py
0.979 KB
April 17 2024 16:58:17
root / linksafe
0644
threading.py
44.571 KB
April 17 2024 16:58:19
root / linksafe
0644
timeit.py
12.104 KB
April 17 2024 16:58:15
root / linksafe
0755
token.py
2.963 KB
April 17 2024 16:58:14
root / linksafe
0644
tokenize.py
24.293 KB
April 17 2024 16:58:20
root / linksafe
0644
trace.py
30.749 KB
April 17 2024 16:58:13
root / linksafe
0755
traceback.py
11.701 KB
April 17 2024 16:58:20
root / linksafe
0644
tty.py
0.858 KB
April 17 2024 16:58:13
root / linksafe
0644
types.py
3.093 KB
April 17 2024 16:58:14
root / linksafe
0644
uu.py
6.607 KB
April 17 2024 16:58:14
root / linksafe
0755
uuid.py
21.825 KB
April 17 2024 16:58:15
root / linksafe
0644
warnings.py
13.501 KB
April 17 2024 16:58:15
root / linksafe
0644
wave.py
18.144 KB
April 17 2024 16:58:15
root / linksafe
0644
weakref.py
11.226 KB
April 17 2024 16:58:19
root / linksafe
0644
webbrowser.py
22.376 KB
April 17 2024 16:58:20
root / linksafe
0755
xdrlib.py
5.255 KB
April 17 2024 16:58:21
root / linksafe
0644
zipfile.py
64.867 KB
April 17 2024 16:58:21
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF