SILENT KILLERPanel

Current Path: > > usr > lib > python3.8 > 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: //usr/lib/python3.8/site-packages/pip/_vendor/distlib/_backport/

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
__init__.py File 274 bytes October 17 2023 18:30:24.
misc.py File 971 bytes October 17 2023 18:30:24.
sysconfig.cfg File 2617 bytes October 17 2023 18:30:24.
sysconfig.py File 26964 bytes October 17 2023 18:30:24.

Reading File: //usr/lib/python3.8/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