Current Path: > > opt > > hc_python > lib > python3.12 > > site-packages > mako
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 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
ext | Directory | - | - | |
testing | Directory | - | - | |
__init__.py | File | 242 bytes | April 04 2025 08:02:32. | |
_ast_util.py | File | 20247 bytes | April 04 2025 08:02:32. | |
ast.py | File | 6642 bytes | April 04 2025 08:02:32. | |
cache.py | File | 7680 bytes | April 04 2025 08:02:32. | |
cmd.py | File | 2813 bytes | April 04 2025 08:02:32. | |
codegen.py | File | 47736 bytes | April 04 2025 08:02:32. | |
compat.py | File | 1820 bytes | April 04 2025 08:02:32. | |
exceptions.py | File | 12530 bytes | April 04 2025 08:02:32. | |
filters.py | File | 4658 bytes | April 04 2025 08:02:32. | |
lexer.py | File | 16321 bytes | April 04 2025 08:02:32. | |
lookup.py | File | 12428 bytes | April 04 2025 08:02:32. | |
parsetree.py | File | 19021 bytes | April 04 2025 08:02:32. | |
pygen.py | File | 10416 bytes | April 04 2025 08:02:32. | |
pyparser.py | File | 7478 bytes | April 04 2025 08:02:32. | |
runtime.py | File | 27804 bytes | April 04 2025 08:02:32. | |
template.py | File | 23563 bytes | April 04 2025 08:02:32. | |
util.py | File | 10638 bytes | April 04 2025 08:02:32. |
# mako/compat.py # Copyright 2006-2025 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, ())
SILENT KILLER Tool