SILENT KILLERPanel

Current Path: > > usr > > lib64 > python3.8


Operation   : Linux premium131.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
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //usr//lib64/python3.8

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
asyncio Directory - -
collections Directory - -
concurrent Directory - -
config-3.8-x86_64-linux-gnu Directory - -
ctypes Directory - -
curses Directory - -
dbm Directory - -
distutils Directory - -
email Directory - -
encodings Directory - -
ensurepip Directory - -
html Directory - -
http Directory - -
importlib Directory - -
json Directory - -
lib-dynload Directory - -
lib2to3 Directory - -
logging Directory - -
multiprocessing Directory - -
pydoc_data Directory - -
site-packages Directory - -
sqlite3 Directory - -
tkinter Directory - -
turtledemo Directory - -
unittest Directory - -
urllib Directory - -
venv Directory - -
wsgiref Directory - -
xml Directory - -
xmlrpc Directory - -
LICENSE.txt File 13937 bytes June 06 2023 13:32:21.
__future__.py File 5147 bytes June 06 2023 13:32:21.
__phello__.foo.py File 64 bytes June 06 2023 13:32:21.
_bootlocale.py File 1801 bytes June 06 2023 13:32:21.
_collections_abc.py File 26100 bytes June 06 2023 13:32:21.
_compat_pickle.py File 8749 bytes June 06 2023 13:32:21.
_compression.py File 5340 bytes June 06 2023 13:32:21.
_dummy_thread.py File 6027 bytes June 06 2023 13:32:21.
_markupbase.py File 14598 bytes June 06 2023 13:32:21.
_osx_support.py File 21774 bytes June 06 2023 13:32:21.
_py_abc.py File 6189 bytes June 06 2023 13:32:21.
_pydecimal.py File 228666 bytes June 06 2023 13:32:21.
_pyio.py File 93177 bytes June 06 2023 13:32:21.
_sitebuiltins.py File 3115 bytes June 06 2023 13:32:21.
_strptime.py File 25268 bytes June 06 2023 13:32:21.
_sysconfigdata__linux_x86_64-linux-gnu.py File 38510 bytes October 17 2023 18:12:19.
_sysconfigdata_d_linux_x86_64-linux-gnu.py File 38237 bytes October 17 2023 18:03:44.
_threading_local.py File 7220 bytes June 06 2023 13:32:21.
_weakrefset.py File 5735 bytes June 06 2023 13:32:21.
abc.py File 4489 bytes June 06 2023 13:32:21.
aifc.py File 32814 bytes June 06 2023 13:32:21.
antigravity.py File 477 bytes June 06 2023 13:32:21.
argparse.py File 96015 bytes June 06 2023 13:32:21.
ast.py File 19234 bytes June 06 2023 13:32:21.
asynchat.py File 11328 bytes June 06 2023 13:32:21.
asyncore.py File 20094 bytes June 06 2023 13:32:21.
base64.py File 20382 bytes June 06 2023 13:32:21.
bdb.py File 32056 bytes June 06 2023 13:32:21.
binhex.py File 13954 bytes June 06 2023 13:32:21.
bisect.py File 2214 bytes June 06 2023 13:32:21.
bz2.py File 12558 bytes June 06 2023 13:32:21.
cProfile.py File 7010 bytes June 06 2023 13:32:21.
calendar.py File 24832 bytes June 06 2023 13:32:21.
cgi.py File 33934 bytes October 17 2023 18:02:14.
cgitb.py File 12096 bytes June 06 2023 13:32:21.
chunk.py File 5435 bytes June 06 2023 13:32:21.
cmd.py File 14860 bytes June 06 2023 13:32:21.
code.py File 10622 bytes June 06 2023 13:32:21.
codecs.py File 36667 bytes June 06 2023 13:32:21.
codeop.py File 6330 bytes June 06 2023 13:32:21.
colorsys.py File 4064 bytes June 06 2023 13:32:21.
compileall.py File 13678 bytes June 06 2023 13:32:21.
configparser.py File 54374 bytes June 06 2023 13:32:21.
contextlib.py File 24995 bytes June 06 2023 13:32:21.
contextvars.py File 129 bytes June 06 2023 13:32:21.
copy.py File 8661 bytes June 06 2023 13:32:21.
copyreg.py File 7135 bytes June 06 2023 13:32:21.
crypt.py File 3610 bytes June 06 2023 13:32:21.
csv.py File 16144 bytes June 06 2023 13:32:21.
dataclasses.py File 49973 bytes June 06 2023 13:32:21.
datetime.py File 88287 bytes June 06 2023 13:32:21.
decimal.py File 320 bytes June 06 2023 13:32:21.
difflib.py File 84058 bytes June 06 2023 13:32:21.
dis.py File 20570 bytes June 06 2023 13:32:21.
doctest.py File 104543 bytes June 06 2023 13:32:21.
dummy_threading.py File 2815 bytes June 06 2023 13:32:21.
enum.py File 38136 bytes June 06 2023 13:32:21.
filecmp.py File 9830 bytes June 06 2023 13:32:21.
fileinput.py File 14709 bytes June 06 2023 13:32:21.
fnmatch.py File 4079 bytes June 06 2023 13:32:21.
formatter.py File 15143 bytes June 06 2023 13:32:21.
fractions.py File 24329 bytes June 06 2023 13:32:21.
ftplib.py File 35129 bytes June 06 2023 13:32:21.
functools.py File 37406 bytes June 06 2023 13:32:21.
genericpath.py File 4975 bytes June 06 2023 13:32:21.
getopt.py File 7489 bytes June 06 2023 13:32:21.
getpass.py File 5994 bytes June 06 2023 13:32:21.
gettext.py File 27138 bytes June 06 2023 13:32:21.
glob.py File 5697 bytes June 06 2023 13:32:21.
gzip.py File 21413 bytes June 06 2023 13:32:21.
hashlib.py File 8333 bytes October 17 2023 18:02:14.
heapq.py File 22877 bytes June 06 2023 13:32:21.
hmac.py File 7850 bytes October 17 2023 18:02:14.
imaplib.py File 53606 bytes June 06 2023 13:32:21.
imghdr.py File 3808 bytes June 06 2023 13:32:21.
imp.py File 10536 bytes June 06 2023 13:32:21.
inspect.py File 118550 bytes June 06 2023 13:32:21.
io.py File 3541 bytes June 06 2023 13:32:21.
ipaddress.py File 71644 bytes June 06 2023 13:32:21.
keyword.py File 945 bytes June 06 2023 13:32:21.
linecache.py File 5330 bytes June 06 2023 13:32:21.
locale.py File 78191 bytes June 06 2023 13:32:21.
lzma.py File 12983 bytes June 06 2023 13:32:21.
mailbox.py File 78661 bytes June 06 2023 13:32:21.
mailcap.py File 9067 bytes June 06 2023 13:32:21.
mimetypes.py File 21664 bytes June 06 2023 13:32:21.
modulefinder.py File 24430 bytes June 06 2023 13:32:21.
netrc.py File 5566 bytes June 06 2023 13:32:21.
nntplib.py File 43261 bytes June 06 2023 13:32:21.
ntpath.py File 27734 bytes June 06 2023 13:32:21.
nturl2path.py File 2887 bytes June 06 2023 13:32:21.
numbers.py File 10244 bytes June 06 2023 13:32:21.
opcode.py File 5808 bytes June 06 2023 13:32:21.
operator.py File 10711 bytes June 06 2023 13:32:21.
optparse.py File 60369 bytes June 06 2023 13:32:21.
os.py File 38995 bytes June 06 2023 13:32:21.
pathlib.py File 52610 bytes June 06 2023 13:32:21.
pdb.py File 62738 bytes June 06 2023 13:32:21.
pickle.py File 64467 bytes June 06 2023 13:32:21.
pickletools.py File 93486 bytes June 06 2023 13:32:21.
pipes.py File 8916 bytes June 06 2023 13:32:21.
pkgutil.py File 21500 bytes June 06 2023 13:32:21.
platform.py File 40425 bytes June 06 2023 13:32:21.
plistlib.py File 32220 bytes June 06 2023 13:32:21.
poplib.py File 15077 bytes June 06 2023 13:32:21.
posixpath.py File 15627 bytes June 06 2023 13:32:21.
pprint.py File 21484 bytes June 06 2023 13:32:21.
profile.py File 23546 bytes June 06 2023 13:32:21.
pstats.py File 27345 bytes June 06 2023 13:32:21.
pty.py File 4807 bytes June 06 2023 13:32:21.
py_compile.py File 8203 bytes October 17 2023 18:02:14.
pyclbr.py File 15255 bytes June 06 2023 13:32:21.
pydoc.py File 106700 bytes October 17 2023 18:12:57.
queue.py File 11356 bytes June 06 2023 13:32:21.
quopri.py File 7252 bytes June 06 2023 13:32:21.
random.py File 28802 bytes June 06 2023 13:32:21.
re.py File 15861 bytes June 06 2023 13:32:21.
reprlib.py File 5267 bytes June 06 2023 13:32:21.
rlcompleter.py File 7097 bytes June 06 2023 13:32:21.
runpy.py File 12052 bytes June 06 2023 13:32:21.
sched.py File 6442 bytes June 06 2023 13:32:21.
secrets.py File 2038 bytes June 06 2023 13:32:21.
selectors.py File 18561 bytes June 06 2023 13:32:21.
shelve.py File 8527 bytes June 06 2023 13:32:21.
shlex.py File 13325 bytes June 06 2023 13:32:21.
shutil.py File 51761 bytes June 06 2023 13:32:21.
signal.py File 2273 bytes June 06 2023 13:32:21.
site.py File 21838 bytes October 17 2023 18:02:14.
smtpd.py File 34709 bytes June 06 2023 13:32:21.
smtplib.py File 45001 bytes June 06 2023 13:32:21.
sndhdr.py File 7099 bytes June 06 2023 13:32:21.
socket.py File 35243 bytes June 06 2023 13:32:21.
socketserver.py File 27296 bytes June 06 2023 13:32:21.
sre_compile.py File 26695 bytes June 06 2023 13:32:21.
sre_constants.py File 7154 bytes June 06 2023 13:32:21.
sre_parse.py File 40230 bytes June 06 2023 13:32:21.
ssl.py File 50760 bytes June 06 2023 13:32:21.
stat.py File 5485 bytes June 06 2023 13:32:21.
statistics.py File 39690 bytes June 06 2023 13:32:21.
string.py File 10535 bytes June 06 2023 13:32:21.
stringprep.py File 12917 bytes June 06 2023 13:32:21.
struct.py File 257 bytes June 06 2023 13:32:21.
subprocess.py File 78250 bytes June 06 2023 13:32:21.
sunau.py File 18375 bytes June 06 2023 13:32:21.
symbol.py File 2109 bytes October 17 2023 18:04:15.
symtable.py File 8021 bytes June 06 2023 13:32:21.
sysconfig.py File 24896 bytes October 17 2023 18:12:55.
tabnanny.py File 11406 bytes June 06 2023 13:32:21.
tarfile.py File 106473 bytes October 17 2023 18:02:14.
telnetlib.py File 23254 bytes June 06 2023 13:32:21.
tempfile.py File 27537 bytes June 06 2023 13:32:21.
textwrap.py File 19407 bytes June 06 2023 13:32:21.
this.py File 1003 bytes June 06 2023 13:32:21.
threading.py File 50820 bytes June 06 2023 13:32:21.
timeit.py File 13480 bytes June 06 2023 13:32:21.
token.py File 2368 bytes June 06 2023 13:32:21.
tokenize.py File 25841 bytes June 06 2023 13:32:21.
trace.py File 29870 bytes June 06 2023 13:32:21.
traceback.py File 23611 bytes June 06 2023 13:32:21.
tracemalloc.py File 17076 bytes June 06 2023 13:32:21.
tty.py File 879 bytes June 06 2023 13:32:21.
turtle.py File 143716 bytes June 06 2023 13:32:21.
types.py File 9713 bytes June 06 2023 13:32:21.
typing.py File 68962 bytes June 06 2023 13:32:21.
uu.py File 7277 bytes October 17 2023 18:12:57.
uuid.py File 30515 bytes October 17 2023 18:02:14.
warnings.py File 19688 bytes June 06 2023 13:32:21.
wave.py File 18230 bytes June 06 2023 13:32:21.
weakref.py File 21387 bytes June 06 2023 13:32:21.
webbrowser.py File 24083 bytes June 06 2023 13:32:21.
xdrlib.py File 5913 bytes June 06 2023 13:32:21.
zipapp.py File 7535 bytes June 06 2023 13:32:21.
zipfile.py File 87728 bytes June 06 2023 13:32:21.
zipimport.py File 30765 bytes June 06 2023 13:32:21.

Reading File: //usr//lib64/python3.8/runpy.py

"""runpy.py - locating and running Python code using the module namespace

Provides support for locating and running Python scripts using the Python
module namespace instead of the native filesystem.

This allows Python code to play nicely with non-filesystem based PEP 302
importers when locating support scripts as well as when importing modules.
"""
# Written by Nick Coghlan <ncoghlan at gmail.com>
#    to implement PEP 338 (Executing Modules as Scripts)


import sys
import importlib.machinery # importlib first so we can test #15386 via -m
import importlib.util
import io
import types
import os
from pkgutil import read_code, get_importer

__all__ = [
    "run_module", "run_path",
]

class _TempModule(object):
    """Temporarily replace a module in sys.modules with an empty namespace"""
    def __init__(self, mod_name):
        self.mod_name = mod_name
        self.module = types.ModuleType(mod_name)
        self._saved_module = []

    def __enter__(self):
        mod_name = self.mod_name
        try:
            self._saved_module.append(sys.modules[mod_name])
        except KeyError:
            pass
        sys.modules[mod_name] = self.module
        return self

    def __exit__(self, *args):
        if self._saved_module:
            sys.modules[self.mod_name] = self._saved_module[0]
        else:
            del sys.modules[self.mod_name]
        self._saved_module = []

class _ModifiedArgv0(object):
    def __init__(self, value):
        self.value = value
        self._saved_value = self._sentinel = object()

    def __enter__(self):
        if self._saved_value is not self._sentinel:
            raise RuntimeError("Already preserving saved value")
        self._saved_value = sys.argv[0]
        sys.argv[0] = self.value

    def __exit__(self, *args):
        self.value = self._sentinel
        sys.argv[0] = self._saved_value

# TODO: Replace these helpers with importlib._bootstrap_external functions.
def _run_code(code, run_globals, init_globals=None,
              mod_name=None, mod_spec=None,
              pkg_name=None, script_name=None):
    """Helper to run code in nominated namespace"""
    if init_globals is not None:
        run_globals.update(init_globals)
    if mod_spec is None:
        loader = None
        fname = script_name
        cached = None
    else:
        loader = mod_spec.loader
        fname = mod_spec.origin
        cached = mod_spec.cached
        if pkg_name is None:
            pkg_name = mod_spec.parent
    run_globals.update(__name__ = mod_name,
                       __file__ = fname,
                       __cached__ = cached,
                       __doc__ = None,
                       __loader__ = loader,
                       __package__ = pkg_name,
                       __spec__ = mod_spec)
    exec(code, run_globals)
    return run_globals

def _run_module_code(code, init_globals=None,
                    mod_name=None, mod_spec=None,
                    pkg_name=None, script_name=None):
    """Helper to run code in new namespace with sys modified"""
    fname = script_name if mod_spec is None else mod_spec.origin
    with _TempModule(mod_name) as temp_module, _ModifiedArgv0(fname):
        mod_globals = temp_module.module.__dict__
        _run_code(code, mod_globals, init_globals,
                  mod_name, mod_spec, pkg_name, script_name)
    # Copy the globals of the temporary module, as they
    # may be cleared when the temporary module goes away
    return mod_globals.copy()

# Helper to get the full name, spec and code for a module
def _get_module_details(mod_name, error=ImportError):
    if mod_name.startswith("."):
        raise error("Relative module names not supported")
    pkg_name, _, _ = mod_name.rpartition(".")
    if pkg_name:
        # Try importing the parent to avoid catching initialization errors
        try:
            __import__(pkg_name)
        except ImportError as e:
            # If the parent or higher ancestor package is missing, let the
            # error be raised by find_spec() below and then be caught. But do
            # not allow other errors to be caught.
            if e.name is None or (e.name != pkg_name and
                    not pkg_name.startswith(e.name + ".")):
                raise
        # Warn if the module has already been imported under its normal name
        existing = sys.modules.get(mod_name)
        if existing is not None and not hasattr(existing, "__path__"):
            from warnings import warn
            msg = "{mod_name!r} found in sys.modules after import of " \
                "package {pkg_name!r}, but prior to execution of " \
                "{mod_name!r}; this may result in unpredictable " \
                "behaviour".format(mod_name=mod_name, pkg_name=pkg_name)
            warn(RuntimeWarning(msg))

    try:
        spec = importlib.util.find_spec(mod_name)
    except (ImportError, AttributeError, TypeError, ValueError) as ex:
        # This hack fixes an impedance mismatch between pkgutil and
        # importlib, where the latter raises other errors for cases where
        # pkgutil previously raised ImportError
        msg = "Error while finding module specification for {!r} ({}: {})"
        raise error(msg.format(mod_name, type(ex).__name__, ex)) from ex
    if spec is None:
        raise error("No module named %s" % mod_name)
    if spec.submodule_search_locations is not None:
        if mod_name == "__main__" or mod_name.endswith(".__main__"):
            raise error("Cannot use package as __main__ module")
        try:
            pkg_main_name = mod_name + ".__main__"
            return _get_module_details(pkg_main_name, error)
        except error as e:
            if mod_name not in sys.modules:
                raise  # No module loaded; being a package is irrelevant
            raise error(("%s; %r is a package and cannot " +
                               "be directly executed") %(e, mod_name))
    loader = spec.loader
    if loader is None:
        raise error("%r is a namespace package and cannot be executed"
                                                                 % mod_name)
    try:
        code = loader.get_code(mod_name)
    except ImportError as e:
        raise error(format(e)) from e
    if code is None:
        raise error("No code object available for %s" % mod_name)
    return mod_name, spec, code

class _Error(Exception):
    """Error that _run_module_as_main() should report without a traceback"""

# XXX ncoghlan: Should this be documented and made public?
# (Current thoughts: don't repeat the mistake that lead to its
# creation when run_module() no longer met the needs of
# mainmodule.c, but couldn't be changed because it was public)
def _run_module_as_main(mod_name, alter_argv=True):
    """Runs the designated module in the __main__ namespace

       Note that the executed module will have full access to the
       __main__ namespace. If this is not desirable, the run_module()
       function should be used to run the module code in a fresh namespace.

       At the very least, these variables in __main__ will be overwritten:
           __name__
           __file__
           __cached__
           __loader__
           __package__
    """
    try:
        if alter_argv or mod_name != "__main__": # i.e. -m switch
            mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
        else:          # i.e. directory or zipfile execution
            mod_name, mod_spec, code = _get_main_module_details(_Error)
    except _Error as exc:
        msg = "%s: %s" % (sys.executable, exc)
        sys.exit(msg)
    main_globals = sys.modules["__main__"].__dict__
    if alter_argv:
        sys.argv[0] = mod_spec.origin
    return _run_code(code, main_globals, None,
                     "__main__", mod_spec)

def run_module(mod_name, init_globals=None,
               run_name=None, alter_sys=False):
    """Execute a module's code without importing it

       Returns the resulting top level namespace dictionary
    """
    mod_name, mod_spec, code = _get_module_details(mod_name)
    if run_name is None:
        run_name = mod_name
    if alter_sys:
        return _run_module_code(code, init_globals, run_name, mod_spec)
    else:
        # Leave the sys module alone
        return _run_code(code, {}, init_globals, run_name, mod_spec)

def _get_main_module_details(error=ImportError):
    # Helper that gives a nicer error message when attempting to
    # execute a zipfile or directory by invoking __main__.py
    # Also moves the standard __main__ out of the way so that the
    # preexisting __loader__ entry doesn't cause issues
    main_name = "__main__"
    saved_main = sys.modules[main_name]
    del sys.modules[main_name]
    try:
        return _get_module_details(main_name)
    except ImportError as exc:
        if main_name in str(exc):
            raise error("can't find %r module in %r" %
                              (main_name, sys.path[0])) from exc
        raise
    finally:
        sys.modules[main_name] = saved_main


def _get_code_from_file(run_name, fname):
    # Check for a compiled file first
    decoded_path = os.path.abspath(os.fsdecode(fname))
    with io.open_code(decoded_path) as f:
        code = read_code(f)
    if code is None:
        # That didn't work, so try it as normal source code
        with io.open_code(decoded_path) as f:
            code = compile(f.read(), fname, 'exec')
    return code, fname

def run_path(path_name, init_globals=None, run_name=None):
    """Execute code located at the specified filesystem location

       Returns the resulting top level namespace dictionary

       The file path may refer directly to a Python script (i.e.
       one that could be directly executed with execfile) or else
       it may refer to a zipfile or directory containing a top
       level __main__.py script.
    """
    if run_name is None:
        run_name = "<run_path>"
    pkg_name = run_name.rpartition(".")[0]
    importer = get_importer(path_name)
    # Trying to avoid importing imp so as to not consume the deprecation warning.
    is_NullImporter = False
    if type(importer).__module__ == 'imp':
        if type(importer).__name__ == 'NullImporter':
            is_NullImporter = True
    if isinstance(importer, type(None)) or is_NullImporter:
        # Not a valid sys.path entry, so run the code directly
        # execfile() doesn't help as we want to allow compiled files
        code, fname = _get_code_from_file(run_name, path_name)
        return _run_module_code(code, init_globals, run_name,
                                pkg_name=pkg_name, script_name=fname)
    else:
        # Finder is defined for path, so add it to
        # the start of sys.path
        sys.path.insert(0, path_name)
        try:
            # Here's where things are a little different from the run_module
            # case. There, we only had to replace the module in sys while the
            # code was running and doing so was somewhat optional. Here, we
            # have no choice and we have to remove it even while we read the
            # code. If we don't do this, a __loader__ attribute in the
            # existing __main__ module may prevent location of the new module.
            mod_name, mod_spec, code = _get_main_module_details()
            with _TempModule(run_name) as temp_module, \
                 _ModifiedArgv0(path_name):
                mod_globals = temp_module.module.__dict__
                return _run_code(code, mod_globals, init_globals,
                                    run_name, mod_spec, pkg_name).copy()
        finally:
            try:
                sys.path.remove(path_name)
            except ValueError:
                pass


if __name__ == "__main__":
    # Run the module specified as the next command line argument
    if len(sys.argv) < 2:
        print("No module specified for execution", file=sys.stderr)
    else:
        del sys.argv[0] # Make the requested module sys.argv[0]
        _run_module_as_main(sys.argv[0])

SILENT KILLER Tool