SILENT KILLERPanel

Current Path: > > opt > alt > python37 > lib > python3.7 > site-packages > pip > > _vendor > distlib > _backport


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: //opt/alt/python37/lib/python3.7/site-packages/pip//_vendor/distlib/_backport

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
__init__.py File 274 bytes November 13 2023 21:31:06.
misc.py File 971 bytes November 13 2023 21:31:06.
shutil.py File 25707 bytes November 13 2023 21:31:06.
sysconfig.cfg File 2617 bytes November 13 2023 21:31:06.
sysconfig.py File 26854 bytes November 13 2023 21:31:06.
tarfile.py File 92628 bytes November 13 2023 21:31:06.

Reading File: //opt/alt/python37/lib/python3.7/site-packages/pip//_vendor/distlib/_backport/misc.py

# -*- coding: utf-8 -*-
#
# Copyright (C) 2012 The Python Software Foundation.
# See LICENSE.txt and CONTRIBUTORS.txt.
#
"""Backports for individual classes and functions."""

import os
import sys

__all__ = ['cache_from_source', 'callable', 'fsencode']


try:
    from imp import cache_from_source
except ImportError:
    def cache_from_source(py_file, debug=__debug__):
        ext = debug and 'c' or 'o'
        return py_file + ext


try:
    callable = callable
except NameError:
    from collections import Callable

    def callable(obj):
        return isinstance(obj, Callable)


try:
    fsencode = os.fsencode
except AttributeError:
    def fsencode(filename):
        if isinstance(filename, bytes):
            return filename
        elif isinstance(filename, str):
            return filename.encode(sys.getfilesystemencoding())
        else:
            raise TypeError("expect bytes or str, not %s" %
                            type(filename).__name__)

SILENT KILLER Tool