$39 GRAYBYTE WORDPRESS FILE MANAGER $79

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.157
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python37/lib/python3.7/site-packages/jinja2/__pycache__/

HOME
Current File : /opt/alt/python37/lib/python3.7/site-packages/jinja2/__pycache__//meta.cpython-37.opt-1.pyc
B

�:�`,�@s�dZddlZddlmZddlmZddlmZejrBddl	m
Z
Gdd	�d	e�Zejej
ed
�dd�ZejejejejfZejejejejejfZejejejed
�d
d�ZdS)z_Functions that expose information about templates that might be
interesting for introspection.
�N�)�nodes)�
CodeGenerator)�Frame)�EnvironmentcsLeZdZdZddd��fdd�Zedd�dd	�Zedd
��fdd�Z�Z	S)
�TrackingCodeGeneratorz.We abuse the code generator for introspection.rN)�environment�returncst��|dd�t�|_dS)Nz<introspection>)�super�__init__�set�undeclared_identifiers)�selfr)�	__class__��</opt/alt/python37/lib/python3.7/site-packages/jinja2/meta.pyrszTrackingCodeGenerator.__init__)�xr	cCsdS)zDon't write.Nr)rrrrr�writeszTrackingCodeGenerator.write)�framer	csNt��|�x<|jj��D],\}\}}|dkr||jjkr|j�|�qWdS)z$Remember all undeclared identifiers.ZresolveN)	r
�enter_frameZsymbols�loads�itemsr�globalsr
�add)rr�_�actionZparam)rrrrsz!TrackingCodeGenerator.enter_frame)
�__name__�
__module__�__qualname__�__doc__r�strrrr�
__classcell__rr)rrrsr)�astr	cCst|j�}|�|�|jS)aReturns a set of all variables in the AST that will be looked up from
    the context at runtime.  Because at compile time it's not known which
    variables will be used depending on the path the execution takes at
    runtime, all variables are returned.

    >>> from jinja2 import Environment, meta
    >>> env = Environment()
    >>> ast = env.parse('{% set foo = 42 %}{{ bar + foo }}')
    >>> meta.find_undeclared_variables(ast) == {'bar'}
    True

    .. admonition:: Implementation

       Internally the code generator is used for finding undeclared variables.
       This is good to know because the code generator might raise a
       :exc:`TemplateAssertionError` during compilation and as a matter of
       fact this function can currently raise that exception as well.
    )rrZvisitr
)r"Zcodegenrrr�find_undeclared_variables!s

r#ccs�x�|�t�D]�}|j}t|tj�svt|tjtjf�rnx>|jD],}t|tj�rbt|j	t
�rh|j	Vq<dVq<WqdVqt|j	t
�r�|j	Vqt|tj�r�t|j	tt
f�r�x&|j	D]}t|t
�r�|Vq�WqdVqWdS)abFinds all the referenced templates from the AST.  This will return an
    iterator over all the hardcoded template extensions, inclusions and
    imports.  If dynamic inheritance or inclusion is used, `None` will be
    yielded.

    >>> from jinja2 import Environment, meta
    >>> env = Environment()
    >>> ast = env.parse('{% extends "layout.html" %}{% include helper %}')
    >>> list(meta.find_referenced_templates(ast))
    ['layout.html', None]

    This function is useful for dependency tracking.  For example if you want
    to rebuild parts of the website after a layout template has changed.
    N)Zfind_all�
_ref_types�template�
isinstancerZConstZTupleZListr�valuer �Include�tuple�list)r"Znoder%Z
template_namerrr�find_referenced_templates=s&


r+)r�typing�t�rZcompilerrrZ
TYPE_CHECKINGrrr�Template�Setr r#ZExtendsZ
FromImportZImportr(r$ZUnionZ_RefType�IteratorZOptionalr+rrrr�<module>s


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 11.11 PM
root / linksafe
0755
__init__.cpython-37.opt-1.pyc
1.84 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
__init__.cpython-37.pyc
1.84 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
_identifier.cpython-37.opt-1.pyc
1.825 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
_identifier.cpython-37.pyc
1.825 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
async_utils.cpython-37.opt-1.pyc
2.389 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
async_utils.cpython-37.pyc
2.389 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
bccache.cpython-37.opt-1.pyc
12.802 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
bccache.cpython-37.pyc
12.802 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
compiler.cpython-37.opt-1.pyc
53.089 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
compiler.cpython-37.pyc
53.089 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
constants.cpython-37.opt-1.pyc
1.479 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
constants.cpython-37.pyc
1.479 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
debug.cpython-37.opt-1.pyc
5.204 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
debug.cpython-37.pyc
5.204 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
defaults.cpython-37.opt-1.pyc
1.282 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
defaults.cpython-37.pyc
1.282 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
environment.cpython-37.opt-1.pyc
51.229 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
environment.cpython-37.pyc
51.229 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
exceptions.cpython-37.opt-1.pyc
5.422 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
exceptions.cpython-37.pyc
5.422 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
ext.cpython-37.opt-1.pyc
25.626 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
ext.cpython-37.pyc
25.626 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
filters.cpython-37.opt-1.pyc
48.595 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
filters.cpython-37.pyc
48.595 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
idtracking.cpython-37.opt-1.pyc
10.889 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
idtracking.cpython-37.pyc
10.889 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
lexer.cpython-37.opt-1.pyc
19.562 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
lexer.cpython-37.pyc
19.562 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
loaders.cpython-37.opt-1.pyc
19.753 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
loaders.cpython-37.pyc
19.753 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
meta.cpython-37.opt-1.pyc
3.679 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
meta.cpython-37.pyc
3.679 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
nativetypes.cpython-37.opt-1.pyc
4.707 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
nativetypes.cpython-37.pyc
4.707 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
nodes.cpython-37.opt-1.pyc
40.422 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
nodes.cpython-37.pyc
40.422 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
optimizer.cpython-37.opt-1.pyc
1.836 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
optimizer.cpython-37.pyc
1.836 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
parser.cpython-37.opt-1.pyc
26.864 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
parser.cpython-37.pyc
26.864 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
runtime.cpython-37.opt-1.pyc
32.179 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
runtime.cpython-37.pyc
32.179 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
sandbox.cpython-37.opt-1.pyc
11.517 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
sandbox.cpython-37.pyc
11.517 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
tests.cpython-37.opt-1.pyc
6.349 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
tests.cpython-37.pyc
6.349 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
utils.cpython-37.opt-1.pyc
26.536 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
utils.cpython-37.pyc
26.536 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
visitor.cpython-37.opt-1.pyc
3.768 KB
14 Nov 2023 1.02 PM
root / linksafe
0644
visitor.cpython-37.pyc
3.768 KB
14 Nov 2023 1.02 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF