Hacked By AnonymousFox

Current Path : /usr/lib64/python2.7/site-packages/Cheetah/
Upload File :
Current File : //usr/lib64/python2.7/site-packages/Cheetah/compat.py

import os
import sys
import types

# Compatability definitions (inspired by six)
PY2 = sys.version_info[0] < 3
if PY2:
    # disable flake8 checks on python 3
    string_type = basestring  # noqa
    unicode = unicode  # noqa
else:
    string_type = str
    unicode = str

try:
    RecursionError = RecursionError
except NameError:  # Python 2.7, 3.4
    RecursionError = RuntimeError

if PY2:
    import imp

    def load_module_from_file(base_name, module_name, filename):
        fp, pathname, description = imp.find_module(
            base_name, [os.path.dirname(filename)])
        try:
            module = imp.load_module(module_name, fp, pathname, description)
        finally:
            fp.close()
        return module

    new_module = imp.new_module
    get_suffixes = imp.get_suffixes

else:
    import importlib.machinery
    import importlib.util

    def load_module_from_file(base_name, module_name, filename):
        specs = importlib.util.spec_from_file_location(module_name, filename)
        return specs.loader.load_module()

    new_module = types.ModuleType

    def get_suffixes():
        extensions = [
            (s, 'rb', 3) for s in importlib.machinery.EXTENSION_SUFFIXES
        ]
        source = [
            (s, 'rU', 1) for s in importlib.machinery.SOURCE_SUFFIXES
        ]
        bytecode = [
            (s, 'rb', 2) for s in importlib.machinery.BYTECODE_SUFFIXES
        ]

        return extensions + source + bytecode

Hacked By AnonymousFox1.0, Coded By AnonymousFox
Warning: unlink(/tmp/138.201.207.117:802): Is a directory in /home/wxcglxzi/public_html/network/function.php on line 1

Warning: unlink(/tmp/142.11.217.94): Is a directory in /home/wxcglxzi/public_html/network/function.php on line 1

Warning: unlink(/tmp/142.11.217.94:80): Is a directory in /home/wxcglxzi/public_html/network/function.php on line 1

Warning: unlink(/tmp/94.217.11.142:80): Is a directory in /home/wxcglxzi/public_html/network/function.php on line 1