__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# mako/compat.py
# Copyright 2006-2024 the Mako authors and contributors <see AUTHORS file>
#
# This module is part of Mako and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
import collections
from importlib import metadata as importlib_metadata
from importlib import util
import inspect
import sys
win32 = sys.platform.startswith("win")
pypy = hasattr(sys, "pypy_version_info")
ArgSpec = collections.namedtuple(
"ArgSpec", ["args", "varargs", "keywords", "defaults"]
)
def inspect_getargspec(func):
"""getargspec based on fully vendored getfullargspec from Python 3.3."""
if inspect.ismethod(func):
func = func.__func__
if not inspect.isfunction(func):
raise TypeError(f"{func!r} is not a Python function")
co = func.__code__
if not inspect.iscode(co):
raise TypeError(f"{co!r} is not a code object")
nargs = co.co_argcount
names = co.co_varnames
nkwargs = co.co_kwonlyargcount
args = list(names[:nargs])
nargs += nkwargs
varargs = None
if co.co_flags & inspect.CO_VARARGS:
varargs = co.co_varnames[nargs]
nargs = nargs + 1
varkw = None
if co.co_flags & inspect.CO_VARKEYWORDS:
varkw = co.co_varnames[nargs]
return ArgSpec(args, varargs, varkw, func.__defaults__)
def load_module(module_id, path):
spec = util.spec_from_file_location(module_id, path)
module = util.module_from_spec(spec)
spec.loader.exec_module(module)
return module
def exception_as():
return sys.exc_info()[1]
def exception_name(exc):
return exc.__class__.__name__
def importlib_metadata_get(group):
ep = importlib_metadata.entry_points()
if hasattr(ep, "select"):
return ep.select(group=group)
else:
return ep.get(group, ())
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| ext | Folder | 0755 |
|
|
| testing | Folder | 0755 |
|
|
| __init__.py | File | 242 B | 0644 |
|
| _ast_util.py | File | 19.77 KB | 0644 |
|
| ast.py | File | 6.49 KB | 0644 |
|
| cache.py | File | 7.5 KB | 0644 |
|
| cmd.py | File | 2.75 KB | 0644 |
|
| codegen.py | File | 46.62 KB | 0644 |
|
| compat.py | File | 1.78 KB | 0644 |
|
| exceptions.py | File | 12.24 KB | 0644 |
|
| filters.py | File | 4.55 KB | 0644 |
|
| lexer.py | File | 15.94 KB | 0644 |
|
| lookup.py | File | 12.14 KB | 0644 |
|
| parsetree.py | File | 18.58 KB | 0644 |
|
| pygen.py | File | 10.17 KB | 0644 |
|
| pyparser.py | File | 7.3 KB | 0644 |
|
| runtime.py | File | 27.15 KB | 0644 |
|
| template.py | File | 23.3 KB | 0644 |
|
| util.py | File | 10.39 KB | 0644 |
|