GRAYBYTE WORDPRESS FILE MANAGER8147

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/python313/lib64/python3.13/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/python313/lib64/python3.13//linecache.py
"""Cache lines from Python source files.

This is intended to read lines from modules imported -- hence if a filename
is not found, it will look down the module search path for a file by
that name.
"""

__all__ = ["getline", "clearcache", "checkcache", "lazycache"]


# The cache. Maps filenames to either a thunk which will provide source code,
# or a tuple (size, mtime, lines, fullname) once loaded.
cache = {}
_interactive_cache = {}


def clearcache():
    """Clear the cache entirely."""
    cache.clear()


def getline(filename, lineno, module_globals=None):
    """Get a line for a Python source file from the cache.
    Update the cache if it doesn't contain an entry for this file already."""

    lines = getlines(filename, module_globals)
    if 1 <= lineno <= len(lines):
        return lines[lineno - 1]
    return ''


def getlines(filename, module_globals=None):
    """Get the lines for a Python source file from the cache.
    Update the cache if it doesn't contain an entry for this file already."""

    if filename in cache:
        entry = cache[filename]
        if len(entry) != 1:
            return cache[filename][2]

    try:
        return updatecache(filename, module_globals)
    except MemoryError:
        clearcache()
        return []


def _getline_from_code(filename, lineno):
    lines = _getlines_from_code(filename)
    if 1 <= lineno <= len(lines):
        return lines[lineno - 1]
    return ''

def _make_key(code):
    return (code.co_filename, code.co_qualname, code.co_firstlineno)

def _getlines_from_code(code):
    code_id = _make_key(code)
    if code_id in _interactive_cache:
        entry = _interactive_cache[code_id]
        if len(entry) != 1:
            return _interactive_cache[code_id][2]
    return []


def checkcache(filename=None):
    """Discard cache entries that are out of date.
    (This is not checked upon each call!)"""

    if filename is None:
        # get keys atomically
        filenames = cache.copy().keys()
    else:
        filenames = [filename]

    for filename in filenames:
        try:
            entry = cache[filename]
        except KeyError:
            continue

        if len(entry) == 1:
            # lazy cache entry, leave it lazy.
            continue
        size, mtime, lines, fullname = entry
        if mtime is None:
            continue   # no-op for files loaded via a __loader__
        try:
            # This import can fail if the interpreter is shutting down
            import os
        except ImportError:
            return
        try:
            stat = os.stat(fullname)
        except (OSError, ValueError):
            cache.pop(filename, None)
            continue
        if size != stat.st_size or mtime != stat.st_mtime:
            cache.pop(filename, None)


def updatecache(filename, module_globals=None):
    """Update a cache entry and return its list of lines.
    If something's wrong, print a message, discard the cache entry,
    and return an empty list."""

    # These imports are not at top level because linecache is in the critical
    # path of the interpreter startup and importing os and sys take a lot of time
    # and slows down the startup sequence.
    try:
        import os
        import sys
        import tokenize
    except ImportError:
        # These import can fail if the interpreter is shutting down
        return []

    if filename in cache:
        if len(cache[filename]) != 1:
            cache.pop(filename, None)
    if not filename or (filename.startswith('<') and filename.endswith('>')):
        return []

    fullname = filename
    try:
        stat = os.stat(fullname)
    except OSError:
        basename = filename

        # Realise a lazy loader based lookup if there is one
        # otherwise try to lookup right now.
        if lazycache(filename, module_globals):
            try:
                data = cache[filename][0]()
            except (ImportError, OSError):
                pass
            else:
                if data is None:
                    # No luck, the PEP302 loader cannot find the source
                    # for this module.
                    return []
                cache[filename] = (
                    len(data),
                    None,
                    [line + '\n' for line in data.splitlines()],
                    fullname
                )
                return cache[filename][2]

        # Try looking through the module search path, which is only useful
        # when handling a relative filename.
        if os.path.isabs(filename):
            return []

        for dirname in sys.path:
            try:
                fullname = os.path.join(dirname, basename)
            except (TypeError, AttributeError):
                # Not sufficiently string-like to do anything useful with.
                continue
            try:
                stat = os.stat(fullname)
                break
            except (OSError, ValueError):
                pass
        else:
            return []
    except ValueError:  # may be raised by os.stat()
        return []
    try:
        with tokenize.open(fullname) as fp:
            lines = fp.readlines()
    except (OSError, UnicodeDecodeError, SyntaxError):
        return []
    if not lines:
        lines = ['\n']
    elif not lines[-1].endswith('\n'):
        lines[-1] += '\n'
    size, mtime = stat.st_size, stat.st_mtime
    cache[filename] = size, mtime, lines, fullname
    return lines


def lazycache(filename, module_globals):
    """Seed the cache for filename with module_globals.

    The module loader will be asked for the source only when getlines is
    called, not immediately.

    If there is an entry in the cache already, it is not altered.

    :return: True if a lazy load is registered in the cache,
        otherwise False. To register such a load a module loader with a
        get_source method must be found, the filename must be a cacheable
        filename, and the filename must not be already cached.
    """
    if filename in cache:
        if len(cache[filename]) == 1:
            return True
        else:
            return False
    if not filename or (filename.startswith('<') and filename.endswith('>')):
        return False
    # Try for a __loader__, if available
    if module_globals and '__name__' in module_globals:
        spec = module_globals.get('__spec__')
        name = getattr(spec, 'name', None) or module_globals['__name__']
        loader = getattr(spec, 'loader', None)
        if loader is None:
            loader = module_globals.get('__loader__')
        get_source = getattr(loader, 'get_source', None)

        if name and get_source:
            def get_lines(name=name, *args, **kwargs):
                return get_source(name, *args, **kwargs)
            cache[filename] = (get_lines,)
            return True
    return False

def _register_code(code, string, name):
    entry = (len(string),
             None,
             [line + '\n' for line in string.splitlines()],
             name)
    stack = [code]
    while stack:
        code = stack.pop()
        for const in code.co_consts:
            if isinstance(const, type(code)):
                stack.append(const)
        _interactive_cache[_make_key(code)] = entry

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 13 2025 08:38:47
root / root
0755
__pycache__
--
May 13 2025 08:36:33
root / linksafe
0755
_pyrepl
--
May 13 2025 08:36:33
root / linksafe
0755
asyncio
--
May 13 2025 08:36:33
root / linksafe
0755
collections
--
May 13 2025 08:36:33
root / linksafe
0755
concurrent
--
May 13 2025 08:36:33
root / linksafe
0755
config-3.13-x86_64-linux-gnu
--
May 13 2025 08:38:47
root / linksafe
0755
ctypes
--
May 13 2025 08:36:33
root / linksafe
0755
curses
--
May 13 2025 08:36:33
root / linksafe
0755
dbm
--
May 13 2025 08:36:33
root / linksafe
0755
email
--
May 13 2025 08:36:33
root / linksafe
0755
encodings
--
May 13 2025 08:36:33
root / linksafe
0755
ensurepip
--
May 13 2025 08:36:33
root / linksafe
0755
html
--
May 13 2025 08:36:33
root / linksafe
0755
http
--
May 13 2025 08:36:33
root / linksafe
0755
importlib
--
May 13 2025 08:36:33
root / linksafe
0755
json
--
May 13 2025 08:36:33
root / linksafe
0755
lib-dynload
--
May 13 2025 08:36:33
root / linksafe
0755
logging
--
May 13 2025 08:36:33
root / linksafe
0755
multiprocessing
--
May 13 2025 08:36:33
root / linksafe
0755
pathlib
--
May 13 2025 08:36:33
root / linksafe
0755
pydoc_data
--
May 13 2025 08:36:33
root / linksafe
0755
re
--
May 13 2025 08:36:33
root / linksafe
0755
site-packages
--
May 13 2025 08:36:33
root / linksafe
0755
sqlite3
--
May 13 2025 08:36:33
root / linksafe
0755
sysconfig
--
May 13 2025 08:36:33
root / linksafe
0755
tomllib
--
May 13 2025 08:36:33
root / linksafe
0755
unittest
--
May 13 2025 08:36:33
root / linksafe
0755
urllib
--
May 13 2025 08:36:33
root / linksafe
0755
venv
--
May 13 2025 08:36:33
root / linksafe
0755
wsgiref
--
May 13 2025 08:36:33
root / linksafe
0755
xml
--
May 13 2025 08:36:33
root / linksafe
0755
xmlrpc
--
May 13 2025 08:36:33
root / linksafe
0755
zipfile
--
May 13 2025 08:36:33
root / linksafe
0755
zoneinfo
--
May 13 2025 08:36:33
root / linksafe
0755
LICENSE.txt
13.485 KB
April 08 2025 13:54:08
root / linksafe
0644
__future__.py
5.096 KB
April 25 2025 15:04:28
root / linksafe
0644
__hello__.py
0.222 KB
April 25 2025 15:04:28
root / linksafe
0644
_aix_support.py
3.927 KB
April 25 2025 15:04:26
root / linksafe
0644
_android_support.py
6.733 KB
April 25 2025 15:04:20
root / linksafe
0644
_apple_support.py
2.203 KB
April 25 2025 15:04:26
root / linksafe
0644
_collections_abc.py
31.508 KB
April 25 2025 15:04:21
root / linksafe
0644
_colorize.py
2.781 KB
April 25 2025 15:04:20
root / linksafe
0644
_compat_pickle.py
8.53 KB
April 25 2025 15:04:26
root / linksafe
0644
_compression.py
5.548 KB
April 25 2025 15:04:21
root / linksafe
0644
_ios_support.py
2.609 KB
April 25 2025 15:04:26
root / linksafe
0644
_markupbase.py
14.31 KB
April 25 2025 15:04:21
root / linksafe
0644
_opcode_metadata.py
9.048 KB
April 25 2025 15:04:26
root / linksafe
0644
_osx_support.py
21.507 KB
April 25 2025 15:04:26
root / linksafe
0644
_py_abc.py
6.044 KB
April 25 2025 15:04:27
root / linksafe
0644
_pydatetime.py
89.831 KB
April 25 2025 15:04:28
root / linksafe
0644
_pydecimal.py
221.956 KB
April 25 2025 15:04:19
root / linksafe
0644
_pyio.py
91.1 KB
April 25 2025 15:04:21
root / linksafe
0644
_pylong.py
11.553 KB
April 25 2025 15:04:21
root / linksafe
0644
_sitebuiltins.py
3.055 KB
April 25 2025 15:04:21
root / linksafe
0644
_strptime.py
28.693 KB
April 25 2025 15:04:27
root / linksafe
0644
_sysconfigdata__linux_x86_64-linux-gnu.py
65.617 KB
April 25 2025 15:09:38
root / linksafe
0644
_sysconfigdata_d_linux_x86_64-linux-gnu.py
65.6 KB
April 25 2025 15:05:28
root / linksafe
0644
_threading_local.py
7.051 KB
April 25 2025 15:04:20
root / linksafe
0644
_weakrefset.py
5.755 KB
April 25 2025 15:04:20
root / linksafe
0644
abc.py
6.385 KB
April 25 2025 15:04:20
root / linksafe
0644
antigravity.py
0.488 KB
April 25 2025 15:04:21
root / linksafe
0644
argparse.py
99.266 KB
April 25 2025 15:04:26
root / linksafe
0644
ast.py
63.912 KB
April 25 2025 15:04:26
root / linksafe
0644
base64.py
21.136 KB
April 25 2025 15:04:21
root / linksafe
0755
bdb.py
34.515 KB
April 25 2025 15:04:25
root / linksafe
0644
bisect.py
3.343 KB
April 25 2025 15:04:19
root / linksafe
0644
bz2.py
11.688 KB
April 25 2025 15:04:26
root / linksafe
0644
cProfile.py
6.481 KB
April 25 2025 15:04:19
root / linksafe
0755
calendar.py
25.466 KB
April 25 2025 15:04:26
root / linksafe
0644
cmd.py
14.957 KB
April 25 2025 15:04:19
root / linksafe
0644
code.py
12.861 KB
April 25 2025 15:04:21
root / linksafe
0644
codecs.py
36.063 KB
April 25 2025 15:04:21
root / linksafe
0644
codeop.py
5.691 KB
April 25 2025 15:04:20
root / linksafe
0644
colorsys.py
3.967 KB
April 25 2025 15:04:20
root / linksafe
0644
compileall.py
20.181 KB
April 25 2025 15:04:20
root / linksafe
0644
configparser.py
52.512 KB
April 25 2025 15:04:20
root / linksafe
0644
contextlib.py
27.149 KB
April 25 2025 15:04:20
root / linksafe
0644
contextvars.py
0.126 KB
April 25 2025 15:04:26
root / linksafe
0644
copy.py
8.765 KB
April 25 2025 15:04:20
root / linksafe
0644
copyreg.py
7.436 KB
April 25 2025 15:04:26
root / linksafe
0644
csv.py
18.729 KB
April 25 2025 15:04:21
root / linksafe
0644
dataclasses.py
63.032 KB
April 25 2025 15:04:26
root / linksafe
0644
datetime.py
0.262 KB
April 25 2025 15:04:28
root / linksafe
0644
decimal.py
2.732 KB
April 25 2025 15:04:26
root / linksafe
0644
difflib.py
81.414 KB
April 25 2025 15:04:21
root / linksafe
0644
dis.py
40.002 KB
April 25 2025 15:04:21
root / linksafe
0644
doctest.py
106.771 KB
April 25 2025 15:04:21
root / linksafe
0644
enum.py
83.481 KB
April 25 2025 15:04:21
root / linksafe
0644
filecmp.py
10.402 KB
April 25 2025 15:04:20
root / linksafe
0644
fileinput.py
15.349 KB
April 25 2025 15:04:21
root / linksafe
0644
fnmatch.py
6.035 KB
April 25 2025 15:04:20
root / linksafe
0644
fractions.py
39.083 KB
April 25 2025 15:04:19
root / linksafe
0644
ftplib.py
33.921 KB
April 25 2025 15:04:20
root / linksafe
0644
functools.py
38.206 KB
April 25 2025 15:04:28
root / linksafe
0644
genericpath.py
5.836 KB
April 25 2025 15:04:28
root / linksafe
0644
getopt.py
7.313 KB
April 25 2025 15:04:26
root / linksafe
0644
getpass.py
6.087 KB
April 25 2025 15:04:19
root / linksafe
0644
gettext.py
21.029 KB
April 25 2025 15:04:26
root / linksafe
0644
glob.py
19.258 KB
April 25 2025 15:04:20
root / linksafe
0644
graphlib.py
9.422 KB
April 25 2025 15:04:19
root / linksafe
0644
gzip.py
24.056 KB
April 25 2025 15:04:26
root / linksafe
0644
hashlib.py
9.13 KB
April 25 2025 15:04:28
root / linksafe
0644
heapq.py
22.484 KB
April 25 2025 15:04:19
root / linksafe
0644
hmac.py
7.535 KB
April 25 2025 15:04:21
root / linksafe
0644
imaplib.py
52.773 KB
April 25 2025 15:04:26
root / linksafe
0644
inspect.py
124.36 KB
April 25 2025 15:04:25
root / linksafe
0644
io.py
3.498 KB
April 25 2025 15:04:21
root / linksafe
0644
ipaddress.py
79.232 KB
April 25 2025 15:04:26
root / linksafe
0644
keyword.py
1.048 KB
April 25 2025 15:04:26
root / linksafe
0644
linecache.py
7.113 KB
April 25 2025 15:04:21
root / linksafe
0644
locale.py
77.13 KB
April 25 2025 15:04:26
root / linksafe
0644
lzma.py
13.085 KB
April 25 2025 15:04:27
root / linksafe
0644
mailbox.py
79.73 KB
April 25 2025 15:04:25
root / linksafe
0644
mimetypes.py
23.292 KB
April 25 2025 15:04:26
root / linksafe
0644
modulefinder.py
23.234 KB
April 25 2025 15:04:20
root / linksafe
0644
netrc.py
6.76 KB
April 25 2025 15:04:21
root / linksafe
0644
ntpath.py
31.542 KB
April 25 2025 15:04:20
root / linksafe
0644
nturl2path.py
2.318 KB
April 25 2025 15:04:26
root / linksafe
0644
numbers.py
11.198 KB
April 25 2025 15:04:28
root / linksafe
0644
opcode.py
2.759 KB
April 25 2025 15:04:28
root / linksafe
0644
operator.py
10.723 KB
April 25 2025 15:04:26
root / linksafe
0644
optparse.py
58.954 KB
April 25 2025 15:04:26
root / linksafe
0644
os.py
40.623 KB
April 25 2025 15:04:20
root / linksafe
0644
pdb.py
88.807 KB
April 25 2025 15:04:21
root / linksafe
0755
pickle.py
65.388 KB
April 25 2025 15:04:21
root / linksafe
0644
pickletools.py
91.848 KB
April 25 2025 15:04:20
root / linksafe
0644
pkgutil.py
17.853 KB
April 25 2025 15:04:21
root / linksafe
0644
platform.py
46.249 KB
April 25 2025 15:04:21
root / linksafe
0755
plistlib.py
29.096 KB
April 25 2025 15:04:19
root / linksafe
0644
poplib.py
14.262 KB
April 25 2025 15:04:19
root / linksafe
0644
posixpath.py
17.529 KB
April 25 2025 15:04:21
root / linksafe
0644
pprint.py
23.592 KB
April 25 2025 15:04:21
root / linksafe
0644
profile.py
22.61 KB
April 25 2025 15:04:21
root / linksafe
0755
pstats.py
28.609 KB
April 25 2025 15:04:20
root / linksafe
0644
pty.py
5.993 KB
April 25 2025 15:04:19
root / linksafe
0644
py_compile.py
7.653 KB
April 25 2025 15:04:26
root / linksafe
0644
pyclbr.py
11.129 KB
April 25 2025 15:04:19
root / linksafe
0644
pydoc.py
107.493 KB
April 25 2025 15:04:21
root / linksafe
0755
queue.py
13.165 KB
April 25 2025 15:04:26
root / linksafe
0644
quopri.py
7.028 KB
April 25 2025 15:04:26
root / linksafe
0755
random.py
36.139 KB
April 25 2025 15:04:19
root / linksafe
0644
reprlib.py
7.023 KB
April 25 2025 15:04:21
root / linksafe
0644
rlcompleter.py
7.732 KB
April 25 2025 15:04:28
root / linksafe
0644
runpy.py
12.583 KB
April 25 2025 15:04:19
root / linksafe
0644
sched.py
6.202 KB
April 25 2025 15:04:26
root / linksafe
0644
secrets.py
1.938 KB
April 25 2025 15:04:21
root / linksafe
0644
selectors.py
19.001 KB
April 25 2025 15:04:21
root / linksafe
0644
shelve.py
8.604 KB
April 25 2025 15:04:26
root / linksafe
0644
shlex.py
13.04 KB
April 25 2025 15:04:28
root / linksafe
0644
shutil.py
56.116 KB
April 25 2025 15:04:26
root / linksafe
0644
signal.py
2.437 KB
April 25 2025 15:04:26
root / linksafe
0644
site.py
24.791 KB
April 25 2025 15:04:25
root / linksafe
0644
smtplib.py
42.524 KB
April 25 2025 15:04:20
root / linksafe
0755
socket.py
36.874 KB
April 25 2025 15:04:27
root / linksafe
0644
socketserver.py
27.407 KB
April 25 2025 15:04:28
root / linksafe
0644
sre_compile.py
0.226 KB
April 25 2025 15:04:20
root / linksafe
0644
sre_constants.py
0.227 KB
April 25 2025 15:04:20
root / linksafe
0644
sre_parse.py
0.224 KB
April 25 2025 15:04:21
root / linksafe
0644
ssl.py
51.471 KB
April 25 2025 15:04:26
root / linksafe
0644
stat.py
6.003 KB
April 25 2025 15:04:26
root / linksafe
0644
statistics.py
60.382 KB
April 25 2025 15:04:21
root / linksafe
0644
string.py
11.51 KB
April 25 2025 15:04:26
root / linksafe
0644
stringprep.py
12.614 KB
April 25 2025 15:04:21
root / linksafe
0644
struct.py
0.251 KB
April 25 2025 15:04:21
root / linksafe
0644
subprocess.py
87.146 KB
April 25 2025 15:04:19
root / linksafe
0644
symtable.py
13.874 KB
April 25 2025 15:04:26
root / linksafe
0644
tabnanny.py
11.274 KB
April 25 2025 15:04:26
root / linksafe
0755
tarfile.py
107.496 KB
April 25 2025 15:04:21
root / linksafe
0755
tempfile.py
31.607 KB
April 25 2025 15:04:19
root / linksafe
0644
textwrap.py
19.472 KB
April 25 2025 15:04:20
root / linksafe
0644
this.py
0.979 KB
April 25 2025 15:04:21
root / linksafe
0644
threading.py
53.874 KB
April 25 2025 15:04:26
root / linksafe
0644
timeit.py
13.161 KB
April 25 2025 15:04:21
root / linksafe
0755
token.py
2.431 KB
April 25 2025 15:04:20
root / linksafe
0644
tokenize.py
21.063 KB
April 25 2025 15:04:26
root / linksafe
0644
trace.py
29.031 KB
April 25 2025 15:04:19
root / linksafe
0755
traceback.py
64.313 KB
April 25 2025 15:04:26
root / linksafe
0644
tracemalloc.py
17.624 KB
April 25 2025 15:04:26
root / linksafe
0644
tty.py
1.987 KB
April 25 2025 15:04:19
root / linksafe
0644
types.py
10.944 KB
April 25 2025 15:04:19
root / linksafe
0644
typing.py
129.607 KB
April 25 2025 15:04:26
root / linksafe
0644
uuid.py
28.458 KB
April 25 2025 15:04:21
root / linksafe
0644
warnings.py
26.316 KB
April 25 2025 15:04:21
root / linksafe
0644
wave.py
22.691 KB
April 25 2025 15:04:20
root / linksafe
0644
weakref.py
21.009 KB
April 25 2025 15:04:26
root / linksafe
0644
webbrowser.py
23.729 KB
April 25 2025 15:04:26
root / linksafe
0755
zipapp.py
8.416 KB
April 25 2025 15:04:21
root / linksafe
0644
zipimport.py
32.119 KB
April 25 2025 15:04:26
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF