Linux sh52.ich-4.com 5.14.0-611.26.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 29 05:24:47 EST 2026 x86_64
LiteSpeed
Server IP : 198.143.147.58 & Your IP : 216.73.217.21
Domains :
Cant Read [ /etc/named.conf ]
User : actualbuzz
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python3.9 /
site-packages /
jinja2 /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-02-03 14:58
__init__.py
1.51
KB
-rw-r--r--
2021-01-31 16:19
_compat.py
3.12
KB
-rw-r--r--
2021-01-31 14:47
_identifier.py
1.73
KB
-rw-r--r--
2020-02-17 17:14
asyncfilters.py
4.15
KB
-rw-r--r--
2021-01-31 14:47
asyncsupport.py
7.04
KB
-rw-r--r--
2021-01-31 14:47
bccache.py
11.85
KB
-rw-r--r--
2021-01-31 14:47
compiler.py
64.73
KB
-rw-r--r--
2021-01-31 14:47
constants.py
1.42
KB
-rw-r--r--
2021-01-31 14:47
debug.py
8.37
KB
-rw-r--r--
2025-03-31 15:39
defaults.py
1.1
KB
-rw-r--r--
2021-01-31 14:47
environment.py
49.44
KB
-rw-r--r--
2021-01-31 14:47
exceptions.py
5.3
KB
-rw-r--r--
2021-01-31 14:47
ext.py
25.82
KB
-rw-r--r--
2021-01-31 14:47
filters.py
41.41
KB
-rw-r--r--
2025-03-31 15:39
idtracking.py
9
KB
-rw-r--r--
2021-01-31 14:47
lexer.py
29.62
KB
-rw-r--r--
2021-01-31 14:47
loaders.py
17.25
KB
-rw-r--r--
2021-01-31 14:47
meta.py
4.03
KB
-rw-r--r--
2021-01-31 14:47
nativetypes.py
2.75
KB
-rw-r--r--
2025-03-31 15:39
nodes.py
30.37
KB
-rw-r--r--
2021-01-31 14:47
optimizer.py
1.42
KB
-rw-r--r--
2021-01-31 14:47
parser.py
34.82
KB
-rw-r--r--
2021-01-31 14:47
runtime.py
29.9
KB
-rw-r--r--
2021-01-31 14:47
sandbox.py
17.12
KB
-rw-r--r--
2025-03-31 15:39
tests.py
4.69
KB
-rw-r--r--
2021-01-31 14:47
utils.py
21.91
KB
-rw-r--r--
2021-01-31 16:19
visitor.py
3.16
KB
-rw-r--r--
2021-01-31 14:47
Save
Rename
from ast import literal_eval from itertools import chain from itertools import islice from . import nodes from ._compat import text_type from .compiler import CodeGenerator from .compiler import has_safe_repr from .environment import Environment from .environment import Template def native_concat(nodes): """Return a native Python type from the list of compiled nodes. If the result is a single node, its value is returned. Otherwise, the nodes are concatenated as strings. If the result can be parsed with :func:`ast.literal_eval`, the parsed value is returned. Otherwise, the string is returned. :param nodes: Iterable of nodes to concatenate. """ head = list(islice(nodes, 2)) if not head: return None if len(head) == 1: raw = head[0] if not isinstance(raw, str): return raw else: raw = u"".join([text_type(v) for v in chain(head, nodes)]) try: return literal_eval(raw) except (ValueError, SyntaxError, MemoryError): return raw class NativeCodeGenerator(CodeGenerator): """A code generator which renders Python types by not adding ``to_string()`` around output nodes. """ @staticmethod def _default_finalize(value): return value def _output_const_repr(self, group): return repr(u"".join([text_type(v) for v in group])) def _output_child_to_const(self, node, frame, finalize): const = node.as_const(frame.eval_ctx) if not has_safe_repr(const): raise nodes.Impossible() if isinstance(node, nodes.TemplateData): return const return finalize.const(const) def _output_child_pre(self, node, frame, finalize): if finalize.src is not None: self.write(finalize.src) def _output_child_post(self, node, frame, finalize): if finalize.src is not None: self.write(")") class NativeEnvironment(Environment): """An environment that renders templates to native Python types.""" code_generator_class = NativeCodeGenerator class NativeTemplate(Template): environment_class = NativeEnvironment def render(self, *args, **kwargs): """Render the template to produce a native Python type. If the result is a single node, its value is returned. Otherwise, the nodes are concatenated as strings. If the result can be parsed with :func:`ast.literal_eval`, the parsed value is returned. Otherwise, the string is returned. """ vars = dict(*args, **kwargs) try: return native_concat(self.root_render_func(self.new_context(vars))) except Exception: return self.environment.handle_exception() NativeEnvironment.template_class = NativeTemplate