403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.64
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/__pycache__/test_symtable.cpython-315.opt-2.pyc
R
>lqj�mc��]PHs]PHs]PHs]PHs]PHs]QHGs]QHGsQs	Qs
QsQQ\O2s
QQ	\O2sQ
Q\O2s\Q6Xc\O"2P!P!)
�)�support)�	os_helpera�
import sys

glob = 42
some_var = 12
some_non_assigned_global_var: int
some_assigned_global_var = 11

class Mine:
    instance_var = 24
    def a_method(p1, p2):
        pass

def spam(a, b, *var, **kw):
    global bar
    global some_assigned_global_var
    some_assigned_global_var = 12
    bar = 47
    some_var = 10
    x = 23
    glob
    def internal():
        return x
    def other_internal():
        nonlocal some_var
        some_var = 3
        return some_var
    return internal

def foo():
    pass

def namespace_test(): pass
def namespace_test(): pass

type Alias = int
type GenericAlias[T] = list[T]

def generic_spam[T](a):
    pass

class GenericMine[T: int, U: (int, str) = int]:
    pass
aS
# The following symbols are defined in ComplexClass
# without being introduced by a 'global' statement.
glob_unassigned_meth: Any
glob_unassigned_meth_pep_695: Any

glob_unassigned_async_meth: Any
glob_unassigned_async_meth_pep_695: Any

def glob_assigned_meth(): pass
def glob_assigned_meth_pep_695[T](): pass

async def glob_assigned_async_meth(): pass
async def glob_assigned_async_meth_pep_695[T](): pass

# The following symbols are defined in ComplexClass after
# being introduced by a 'global' statement (and therefore
# are not considered as local symbols of ComplexClass).
glob_unassigned_meth_ignore: Any
glob_unassigned_meth_pep_695_ignore: Any

glob_unassigned_async_meth_ignore: Any
glob_unassigned_async_meth_pep_695_ignore: Any

def glob_assigned_meth_ignore(): pass
def glob_assigned_meth_pep_695_ignore[T](): pass

async def glob_assigned_async_meth_ignore(): pass
async def glob_assigned_async_meth_pep_695_ignore[T](): pass

class ComplexClass:
    a_var = 1234
    a_genexpr = (x for x in [])
    a_lambda = lambda x: x

    type a_type_alias = int
    type a_type_alias_pep_695[T] = list[T]

    class a_class: pass
    class a_class_pep_695[T]: pass

    def a_method(self): pass
    def a_method_pep_695[T](self): pass

    async def an_async_method(self): pass
    async def an_async_method_pep_695[T](self): pass

    @classmethod
    def a_classmethod(cls): pass
    @classmethod
    def a_classmethod_pep_695[T](self): pass

    @classmethod
    async def an_async_classmethod(cls): pass
    @classmethod
    async def an_async_classmethod_pep_695[T](self): pass

    @staticmethod
    def a_staticmethod(): pass
    @staticmethod
    def a_staticmethod_pep_695[T](self): pass

    @staticmethod
    async def an_async_staticmethod(): pass
    @staticmethod
    async def an_async_staticmethod_pep_695[T](self): pass

    # These ones will be considered as methods because of the 'def' although
    # they are *not* valid methods at runtime since they are not decorated
    # with @staticmethod.
    def a_fakemethod(): pass
    def a_fakemethod_pep_695[T](): pass

    async def an_async_fakemethod(): pass
    async def an_async_fakemethod_pep_695[T](): pass

    # Check that those are still considered as methods
    # since they are not using the 'global' keyword.
    def glob_unassigned_meth(): pass
    def glob_unassigned_meth_pep_695[T](): pass

    async def glob_unassigned_async_meth(): pass
    async def glob_unassigned_async_meth_pep_695[T](): pass

    def glob_assigned_meth(): pass
    def glob_assigned_meth_pep_695[T](): pass

    async def glob_assigned_async_meth(): pass
    async def glob_assigned_async_meth_pep_695[T](): pass

    # The following are not picked as local symbols because they are not
    # visible by the class at runtime (this is equivalent to having the
    # definitions outside of the class).
    global glob_unassigned_meth_ignore
    def glob_unassigned_meth_ignore(): pass
    global glob_unassigned_meth_pep_695_ignore
    def glob_unassigned_meth_pep_695_ignore[T](): pass

    global glob_unassigned_async_meth_ignore
    async def glob_unassigned_async_meth_ignore(): pass
    global glob_unassigned_async_meth_pep_695_ignore
    async def glob_unassigned_async_meth_pep_695_ignore[T](): pass

    global glob_assigned_meth_ignore
    def glob_assigned_meth_ignore(): pass
    global glob_assigned_meth_pep_695_ignore
    def glob_assigned_meth_pep_695_ignore[T](): pass

    global glob_assigned_async_meth_ignore
    async def glob_assigned_async_meth_ignore(): pass
    global glob_assigned_async_meth_pep_695_ignore
    async def glob_assigned_async_meth_pep_695_ignore[T](): pass
c�l�UO2FDoUO2U6XfJUt!	P!�N)�get_children�get_name)�block�name�chs&& �'C:\Python315\\Lib\test\test_symtable.py�
find_blockr�s(��� � �"��
�;�;�=�D� ��I�#�c�*`�\sQs]�sn\O\QQ2s\\Q2s\\Q2s	\\Q2s
\\
Q2s\\
Q2s\\Q2s
\\Q	2s\\Q
2s\\Q
2s\\Q2s\\Q2s\\Q2s\\Q2s\\Q
2s\\Q2sQsQsQsQsQsQsQsQsQsQs Qs!Qs"Qs#Qs$Qs%Qs&Qs'Q s(Q!s)Q"s*Q#s+Q$s,Q%s-Q&s.Q's/Q(s0Q)s1Q*s2Q+s3Q,s4Q-s5Q.s6Q/s7Q0s8Q1s9Q2s:Us;P!)3�SymtableTest�?�exec�Mine�a_method�spam�internal�other_internal�foo�Alias�GenericAlias�generic_spam�GenericMine�T�Uc���UOUOO2Q2UOUOO2Q2UOUOO2Q2UOUO
O2Q2UOUOO2Q2UOUOO2Q2UOUOO2Q2UOUOO2Q2UOUOO2Q2UOUOO2Q2UOUOO2Q2UOUOO2Q2UOUOO2Q2UOUOO2Q2UOUO O2Q2P!)�module�class�functionz
type aliasztype parametersz
type variable)�assertEqual�top�get_typerrrrrrr�GenericAlias_innerr�generic_spam_innerr�GenericMine_innerrr��selfs&r�	test_type�SymtableTest.test_type�s���������*�*�,�h�7�������+�+�-�w�7�������/�/�1�:�>�������+�+�-�z�:�������/�/�1�:�>�������*�*�,�j�9�������,�,�.��=�����*�*�3�3�5�7H�I�����0�0�9�9�;�\�J�����*�*�3�3�5�7H�I�����0�0�9�9�;�Z�H�����)�)�2�2�4�6G�H�����/�/�8�8�:�G�D���������*�O�<���������*�O�<r
c�P�UOUOO2]2UOUOO2]2UOUOO2]2UOUO
O2]2UOUOO2]2UOUOO2]2UOUOO2]2UOUOO2]2UOUOO2]2UOUOO2]2P!�r)�
assertGreaterr#�get_idrrrrrrrrrr(s&r�test_id�SymtableTest.test_id�s&�����4�8�8�?�?�,�a�0����4�9�9�+�+�-�q�1����4�=�=�/�/�1�1�5����4�9�9�+�+�-�q�1����4�=�=�/�/�1�1�5����4�8�8�?�?�,�a�0����4�:�:�,�,�.��2����4�,�,�3�3�5�q�9����4�,�,�3�3�5�q�9����4�+�+�2�2�4�a�8r
c��UOUOO22UOUOO22P!r)�assertFalser#�is_optimized�
assertTruerr(s&r�test_optimized�SymtableTest.test_optimized�s6��������.�.�0�1�����	�	�.�.�0�1r
c�P�UOUOO22UOUOO22UOUOO22UOUOO22P!r)r3r#�	is_nestedrrr5rr(s&r�test_nested�SymtableTest.test_nested�sl��������+�+�-�.�������,�,�.�/�������,�,�.�/�����
�
�/�/�1�2r
c��UOUOO22UOUOO22UO	UO
O22P!r)r5r#�has_childrenrr3rr(s&r�
test_children�SymtableTest.test_children�sO��������-�-�/�0�����	�	�.�.�0�1�������.�.�0�1r
c��UOUOO2]2UOUOO2]2P!r-)r"r#�
get_linenorr(s&r�test_lineno�SymtableTest.test_lineno�s<��������,�,�.��2�������-�-�/��4r
c���UOoUO[UO22,QN2,QNoUO[UO	22U2UO[UO22,QN2UOUOO2Q2UOUOO2Q2P!)�a)rE�b�kw�var)rErFrrGr�some_varrH�x)�bar�glob�some_assigned_global_var�rJ)rIrJ)	rr"�sorted�get_parameters�
get_locals�get_globalsr�	get_frees�	get_cells)r)�func�expecteds&  r�test_function_info�SymtableTest.test_function_info�s����y�y������� 3� 3� 5�6�8O�P�Y��������� 1�2�H�=������ 0� 0� 2�3�5`�a�������0�0�2�F�;�������,�,�.�0B�Cr
c��UOUOOQ2O22UO	UOOQ2O22UOUOOQ2O22UOUOOQ2O22UO	UOOQ2O22UO	UOOQ2O22UOUOOQ2O22UOUOOQ2O22UOUOOQ2O22P!)rLrKrJ�instance_var�some_non_assigned_global_varrM)	r5r�lookup�	is_globalr3�is_declared_globalrrr#r(s&r�test_globals�SymtableTest.test_globalssJ������	�	�(�(��0�:�:�<�=�������)�)�&�1�D�D�F�G�����	�	�(�(��/�9�9�;�<�����	�	�(�(��/�B�B�D�E�������-�-�c�2�<�<�>�?�������)�)�.�9�C�C�E�F�����	�	�(�(��/�9�9�;�<���������(F�G�Q�Q�S�T���������(B�C�M�M�O�Pr
c�@�UOUOOQ2O22UO	UO
OQ2O22QoUO
UO
O2U2P!)rI)rI)r3rr\�is_nonlocalr5rr"�
get_nonlocals�r)rVs& r�
test_nonlocal�SymtableTest.test_nonlocalsr��������)�)�*�5�A�A�C�D�����+�+�2�2�:�>�J�J�L�M� ������,�,�:�:�<�h�Gr
c���UOUOOQ2O22UO	UOOQ2O22UOUO
OQ2O22UOUO
OQ2O22P!)rJrKr[rM)r5rr\�is_localr3r#r(s&r�
test_local�SymtableTest.test_locals�������	�	�(�(��-�6�6�8�9�������)�)�%�0�9�9�;�<���������(F�G�P�P�R�S���������(B�C�L�L�N�Or
c�x�UOUOOQ2O22P!rN)r5rr\�is_freer(s&r�	test_free�SymtableTest.test_frees&������
�
�,�,�S�1�9�9�;�<r
c�x�UOUOOQ2O22P!rN)r5rr\�is_cellr(s&r�
test_cells�SymtableTest.test_cells s&������	�	�(�(��-�5�5�7�8r
c�X�UOUOOQ2O22UOUOOQ2O22UOUOOQ2O22P!)rJr)r5rr\�
is_referencedrr3r(s&r�test_referenced�SymtableTest.test_referenced#sp������
�
�,�,�S�1�?�?�A�B�����	�	�(�(��4�B�B�D�E�������)�)�#�.�<�<�>�?r
c��QFD;oUOUOOU2O22J=	UO	UOOQ2O22P!)rErJ)rErHrG)r5rr\�is_parameterr3)r)�syms& r�test_parameters�SymtableTest.test_parameters(sV��%�C��O�O�D�I�I�,�,�S�1�>�>�@�A�&�������)�)�#�.�;�;�=�>r
c��UO[UOO22[UOO	222UO[UOOQ2P!)�not_here)r"�lenr#�get_identifiers�get_symbols�assertRaises�KeyErrorr\r(s&r�test_symbol_lookup�SymtableTest.test_symbol_lookup-sU������T�X�X�5�5�7�8��T�X�X�1�1�3�4�	6�	
���(�D�H�H�O�O�Z�@r
c��UOUOOQ2O22UOUOOQ2O22UOUOOQ2O22UOUO
OQ2O22UOUOOQ2O22UO
UO
OQ2O22UOUOOQ2O2UO
I2UOOQ2oUO[UO22]2UO[UO2UOOQ2oUO[UO22]2UO[UO2P!)rrrr�namespace_testrJrL)
r5r#r\�is_namespacerrr3�
get_namespacer"r~�get_namespacesr��
ValueError)r)�ns_test�	ns_test_2s&  r�test_namespaces�SymtableTest.test_namespaces3s������������/�<�<�>�?�����	�	�(�(��4�A�A�C�D����������/�<�<�>�?�����	�	�(�(��4�A�A�C�D���������(8�9�F�F�H�I�������)�)�#�.�;�;�=�>����������/�=�=�?�4�9�9�L�M��(�(�/�/�"2�3������W�3�3�5�6��:����*�g�&;�&;�<��H�H�O�O�F�+�	�����Y�5�5�7�8�!�<����*�i�&=�&=�>r
c�8�UOUOOQ2O22UOUOOQ2O22UOUOOQ2O22UOUO
OQ2O22UO
UOOQ2O22P!)rJrKrr)r5rr\�is_assignedr#rr3rr(s&r�
test_assigned�SymtableTest.test_assignedDs�������	�	�(�(��-�9�9�;�<�����	�	�(�(��/�;�;�=�>����������/�;�;�=�>�����	�	�(�(��4�@�@�B�C�������-�-�c�2�>�>�@�Ar
c���[OQQQ2oUO2]*oUOUO2Q2UO	UOQ2O
22UO	UOQ2O22UOUOQ2O22[OQQQ2oUO2]*oUOUO2Q2UO	UOQ2O
22UOUOQ2O22[OQQQ2oUO	UOQ2O22[OQQQ2oP!)zdef f():
    x: int
�testrr!rJzdef f():
    x = 1
zglobal x
x: intz=def g():
    x = 2
    def f():
        nonlocal x
    x: int)
�symtablerr"r$r5r\rh�is_annotatedr3r])r)�st1�st2�st3�st4�st5�st6s&      r�test_annotated�SymtableTest.test_annotatedKse����� 8�&�&�I����� ��#����������4�����
�
�3��0�0�2�3�����
�
�3��4�4�6�7�������C��2�2�4�5���� 7���H����� ��#����������4�����
�
�3��0�0�2�3�������C��5�5�7�8���� 2�F�F�C������
�
�3��1�1�3�4����!-�
!'��0�r
c�x�UOUOOQ2O22P!)�sys)r5r#r\�is_importedr(s&r�
test_imported�SymtableTest.test_importedfs$�����������.�:�:�<�=r
c�v�UOUOO2Q2UOUOO2Q2UOUOO	Q2O2Q2UOUO
O2Q2P!)r#rrJr)r"r#rrr\rr(s&r�	test_name�SymtableTest.test_nameis���������*�*�,�e�4�������+�+�-�v�6�������)�)�#�.�7�7�9�3�?�������+�+�-�v�6r
c�<``�[OQ2nRO[R29^tt^2RO	RO
O
2Q2PPP2[O[QQ2o[UQ2oRO[R29^tt^2RO	UO
2Q2PPP2UU1QkoQoSFD�oROUQ59^tt^2UUQ2PPP2ROUP	Q59^tt^2UQOUQ12Q2UQOQU12Q2PPP2J�	QFD�oQ	UQ
0QUQ
0QUQ
0Q
UQ
01FD�oROUQ59^tt^2UUQ2PPP2SFDXoROVWQ59^tt^2UQOVW12Q2UQOVu12Q2PPP2JZ	J�	J�	P!)%fhCK�9h)%fhCKq9h)%fhCKJ9h)%fhCJ�9h)%fhK�9h)%fhJ�9h)zNsymtable.Class.get_methods() is deprecated and will be removed in Python 3.16.rr�ComplexClassc�<:�[OUQ2o[OQU0QQ2o[UQ2oRO	[
R29^tt^2RO
UO2U2PPP2P!)%fhP!9h)� z	class A:
rr�Az    )�textwrap�indentr�r�assertWarnsRegex�DeprecationWarningr"�get_methods)�body�expected_methods�indentedr#�this�deprecation_messr)s&&   ��r�
check_body�7SymtableTest.test_class_get_methods.<locals>.check_body�sy������t�W�5�H��#�#�j��
�$;�S�&�I�C��c�3�'�D��&�&�'9�;K�L�L�� � ��!1�!1�!3�5E�F�M�L�L�L�s�!B
�
B	�B	)�gen)r��isvar�
zgenexpr = 1zdef genexprz:passzasync def genexprzdef genexpr[T]zasync def genexpr[T])rU)r�rU)r)r�a_method_pep_695�an_async_method�an_async_method_pep_695�
a_classmethod�a_classmethod_pep_695�an_async_classmethod�an_async_classmethod_pep_695�a_staticmethod�a_staticmethod_pep_695�an_async_staticmethod�an_async_staticmethod_pep_695�a_fakemethod�a_fakemethod_pep_695�an_async_fakemethod�an_async_fakemethod_pep_695�glob_unassigned_meth�glob_unassigned_meth_pep_695�glob_unassigned_async_meth�"glob_unassigned_async_meth_pep_695�glob_assigned_meth�glob_assigned_meth_pep_695�glob_assigned_async_meth� glob_assigned_async_meth_pep_695)zx = (x for x in [])zx = (x async for x in [])z3type x[genexpr = (x for x in [])] = (x for x in [])z?type x[genexpr = (x async for x in [])] = (x async for x in [])zgenexpr = (x for x in [])zgenexpr = (x async for x in [])z9type genexpr[genexpr = (x for x in [])] = (x for x in [])zEtype genexpr[genexpr = (x async for x in [])] = (x async for x in [])�)z()z(x)z(x, y)z(z: T))�genexpr)�re�escaper�r�r"rr�r��TEST_COMPLEX_CLASS_CODEr�subTest�join)	r)r#r�r��GENEXPRSr��	paramlistrUr�s	f       @r�test_class_get_methods�#SymtableTest.test_class_get_methodsos7����I�I�<�
=�	�
�
"�
"�#5�7G�
H�
H����T�Y�Y�2�2�4�m�D�I���� 7��f�E���#�~�.��
�
"�
"�#5�7G�
H�
H����T�-�-�/�
2�

�I�.	G�	
���C����#��&�&��3��#�'����#�T��2�2��4�9�9�c�=�%9�:�B�?��4�9�9�m�S�%9�:�B�?�3�2�
�;�I��i�[��.�#�I�;�e�4� ���5�1�&�y�k��7�	���\�\�t�\�,�,��t�\�2�-�$�C����#��9�9�"�4�9�9�c�[�#9�<�H�"�4�9�9�d�[�#9�<�H�:�9�$��;�uI�
H�
H��I�
H�
H��X'�&�&��3�2�2��-�,��
:�9�9�sk�+H&�1!H:�
I	�05I"	�+
I7
�3J
�&H7	�/H7	�:I	�I	�I
�I
�"I4
�+I4
�7J�J�
J�Jc�`�U1QkoUQ]2UQ]2[OQQQ2RO[29^tt^2[OQ[Q2Q2PPP2RO[29^tt^2[OQ[	Q2Q2PPP2RO[29^tt^2[OQ[Q2Q2PPP2P!)%fhK�9h)%fhKl9h)%fhP!9h)c�@:�[OUQQ2ROQU802P![c`oROSOQ2ROSO
]2ROSOS2Po=P!Po=hh9h)rrzno SyntaxError for )r��fail�SyntaxErrorr"�filename�lineno�offset)�
brokencoder��er)s&& �r�
checkfilename�9SymtableTest.test_filename_correct.<locals>.checkfilename�s}���
C��!�!�*�f�f�=��	�	�Z�A�B���
3�� � ����V�4�� � ����1�-�� � ����6�2�2��
3�s�3�	B�B�AB�Bzdef f(x): foo)(zdef f(x): global x�passsspamr)r�r��	TypeError�	bytearray�
memoryview�list)r)r�sf r�test_filename_correct�"SymtableTest.test_filename_correct�s����	C�	�'��,��*�B�/����&�'�6�2�
�
�
�y�
)�
)����f�i��&8�&�A�*�
�
�
�y�
)�
)����f�j��&9�6�B�*�
�
�
�y�
)�
)����f�d�7�m�V�<�*�
)�	*�
)��
)�
)��
)�
)�
)�s6�"D
�"D�"D0�
D	�D	�D-	�&D-	�0E	�9E	c�8�[OQQQ2oP!)�42r�eval�r��r)�symbolss& r�	test_eval�SymtableTest.test_eval�s���#�#�D�#�v�6�r
c�8�[OQQQ2oP!)r�r�singler�r�s& r�test_single�SymtableTest.test_single�s���#�#�D�#�x�8�r
c�8�[OQQQ2oP!)zdef f(x): return xrrr�r�s& r�	test_exec�SymtableTest.test_exec�s���#�#�$8�#�v�F�r
c��[O[OQ2QQ2oUO[	UQ22Qo[OUQQ2oUO[	UQ22P!)�utf8rrrs+# -*- coding: iso8859-15 -*-
class �: pass
uŽ)r��	TEST_CODE�encode�assertIsNotNoner)r)r#�codes&  r�
test_bytes�SymtableTest.test_bytes�sd�����	� 0� 0�� 8�#�v�F�����Z��V�4�5�B������c�6�2�����Z��X�6�7r
c��UO[UO2Q2UO[UO2Q2P!)z<SymbolTable for module ?>z$<Function SymbolTable for spam in ?>)r"�strr#rr(s&r�test_symtable_repr�SymtableTest.test_symtable_repr�s4������T�X�X��(D�E�����T�Y�Y��)O�Pr
c�0�UO[UOOQ22Q2UO[UOOQ22Q2UO[UOOQ22Q2UO[UOOQ22Q2UO[UOOQ22Q	2UO[UOOQ
22Q2UO[UO
OQ22Q
2UO[UOOQ22Q2[OQQQ2oUO[UOQ
22Q2[OQQQ2oUO[UOQ
22Q2[OQQQ2oUO2]*oUO2]*oUO[UOQ
22Q2P!)rLz%<symbol 'glob': GLOBAL_IMPLICIT, USE>rKz5<symbol 'bar': GLOBAL_EXPLICIT, DEF_GLOBAL|DEF_LOCAL>rEz<symbol 'a': LOCAL, DEF_PARAM>rz)<symbol 'internal': LOCAL, USE|DEF_LOCAL>rz+<symbol 'other_internal': LOCAL, DEF_LOCAL>rJz<symbol 'x': FREE, USE>rIz5<symbol 'some_var': FREE, USE|DEF_NONLOCAL|DEF_LOCAL>rz-<symbol 'T': LOCAL, DEF_LOCAL|DEF_TYPE_PARAM>�[x for x in [1]]rrz0<symbol 'x': LOCAL, USE|DEF_LOCAL|DEF_COMP_ITER>z[(lambda: x) for x in [1]]z9<symbol 'x': CELL, DEF_LOCAL|DEF_COMP_ITER|DEF_COMP_CELL>zTdef f():
   x = 1
   class A:
       x = 2
       def method():
           return x
z-<symbol 'x': LOCAL, DEF_LOCAL|DEF_FREE_CLASS>)	r"�reprrr\rrrr�r)r)r�r�r��func_f�class_As&     r�test_symbol_repr�SymtableTest.test_symbol_repr�s������d�i�i�.�.�v�6�7�@�	B�����d�i�i�.�.�u�5�6�P�	R�����d�i�i�.�.�s�3�4�9�	;�����d�i�i�.�.�z�:�;�D�	F�����d�i�i�.�.�/?�@�A�F�	H�����d�m�m�2�2�3�7�8�2�	4�����d�1�1�8�8��D�E�P�	R�����d�.�.�5�5�c�:�;�H�	J���� 2�C��@������c�j�j��o�.�K�	M���� <�c�6�J������c�j�j��o�.�T�	V����!8�!$�V�
-���!�!�#�A�&���%�%�'��*������g�n�n�S�1�2�H�	Jr
c���QUOO2QUOO2Q0oUO[	UOO
2U2P!)z<symtable entry top(z), line �>)r#r/rAr"r�_tablerds& r�test_symtable_entry_repr�%SymtableTest.test_symtable_entry_reprsN��)�$�(�(�/�/�*;�)<�H�T�X�X�EX�EX�EZ�D[�[\�]������d�h�h�o�o�.��9r
c�:�[OQQQ2oUO[UO22]2UO2]*oUO	UO2[OO2UOUO2Q2UOUO22UO[UO22Q,2UOUO2,2P!)zlambda x: xrr�<lambda>rJ�
r�r"r~r�assertIsr$�SymbolTableType�FUNCTIONrr3r9rOr�r)�sts& r�test_lambda�SymtableTest.test_lambdas���
�
�
�}�c�6�
:������R�_�_�.�/��3�
�_�_�
�q�
!���
�
�b�k�k�m�X�%=�%=�%F�%F�G��������
�3��������(������ 2� 2� 4�5��u�=�������*�B�/r
c��[OQQQ2oUO[UO22]2UO2]*oUO	UO2[OO2UOUO2Q2UOUO22UO[UO22Q,2UO[UO22]2UO2]*oUO	UO2[OO2UOUO2Q2UOUO22UO[UO22Q,2UOUO2,2P!)zlambda x: lambda y=x: yrrrrJ�y�r�r"r~rrr$rrrr3r9rOrr5rs& r�test_nested_lambda�SymtableTest.test_nested_lambda!sZ��
�
�
�8�#�v�
F������R�_�_�.�/��3�
�_�_�
�q�
!���
�
�b�k�k�m�X�%=�%=�%F�%F�G��������
�3��������(������ 2� 2� 4�5��u�=�����R�_�_�.�/��3�
�_�_�
�q�
!���
�
�b�k�k�m�X�%=�%=�%F�%F�G��������
�3��������'������ 2� 2� 4�5��u�=�������*�B�/r
c�<�[OQQQ2oUO[UO22]2UO2]*oUO	UO2[OO2UOUO2Q2UOUO22UO[UO22QQ,2UOUO2,2P!)z(x for x in a)rr�	<genexpr>�.0rJrrs& r�test_genexpr�SymtableTest.test_genexpr1s���
�
�
�/��f�
=������R�_�_�.�/��3�
�_�_�
�q�
!���
�
�b�k�k�m�X�%=�%=�%F�%F�G���������4��������(������ 2� 2� 4�5��c�{�C�������*�B�/r
c��[OQQQ2oUO[UO22]2UO2]*oUO	UO2[OO2UOUO2Q2UOUO22UO[UO22QQ,2UO[UO22]2UO2]*oUO	UO2[OO2UOUO2Q2UOUO22UO[UO22QQ,2UOUO2,2P!)z((y for y in x) for x in a)rrr&r'rJr!r"rs& r�test_nested_genexpr� SymtableTest.test_nested_genexpr;s^��
�
�
�<�c�6�
J������R�_�_�.�/��3�
�_�_�
�q�
!���
�
�b�k�k�m�X�%=�%=�%F�%F�G���������4��������(������ 2� 2� 4�5��c�{�C�����R�_�_�.�/��3�
�_�_�
�q�
!���
�
�b�k�k�m�X�%=�%=�%F�%F�G���������4��������'������ 2� 2� 4�5��c�{�C�������*�B�/r
c�Z�QoUO[[OPU]2P!)zthis is a mortal string)r�r�r�)r)�
mortal_strs& r�test__symtable_refleak�#SymtableTest.test__symtable_refleakKs%��/�
����)�X�%6�%6��J��Jr
c	��[OQ2o[UQ29^tt^2oUO2oPPP2Qo[O
P	Q59^tt^2o[OQ2[OQUQ5[OWUQ2PPP2UO[QW22,QN2SFD?oUOUOU2UOUO[2JA	[O
P	Q59^tt^2o[OQ2[OQQ	Q5[OQUQ5[OWUQQ
Q5PPP2UO[QU22,QN2SFD?oUOUOU2UOUO[2JA	P!)%fhCK�9h)%fhCK�9h)%fhK�9h)
z#test_import/data/syntax_warnings.py�rbz*test\.test_import\.data\.syntax_warnings\z)�record�error�always)rrc3�D�SF �DpOw�	J	P!3hr�r���.0�wms& r�	<genexpr>�ESymtableTest.test_filter_syntax_warnings_by_module.<locals>.<genexpr>[���D���D�b�	�	�D��� zpackage\.module\zzpackage.modulec3�D�SF �DpOw�	J	P!3hrr7r8s& rr;r<er=r>)���
)r�findfile�open�read�warnings�catch_warnings�simplefilter�filterwarningsr�r"rOr�r�category�
SyntaxWarning)r)r��f�source�	module_re�wlogr:s&      r�%test_filter_syntax_warnings_by_module�2SymtableTest.test_filter_syntax_warnings_by_moduleRs����#�#�$I�J��
�(�D�
!�
!�Q��V�V�X�F�"�A�	�
�
$�
$�D�
1�
1�T��!�!�'�*��#�#�H�Y�?����f�h��7�2�	
����9�D�9�9�:�F��B����R�[�[�(�3��M�M�"�+�+�}�5���
$�
$�D�
1�
1�T��!�!�'�*��#�#�H�5I�J��#�#�G�I�>����f�h��?O�P�	2�
	
����9�D�9�9�:�F��B����R�[�[�(�3��M�M�"�+�+�}�5��%"�
!�
!��2�
1�
1��2�
1�s7�H�&AH%�=A!H9�H"	�H"	�%H6	�.H6	�9I		�I		r�)<�__name__�
__module__�__qualname__�__firstlineno__r�rr#rrrrrrrrrr%rr&rr'rrr*r0r6r:r>rBrWr_rerirmrqrurzr�r�r�r�r�r�r�r�r�r�r�rrrrrr#r(r+r/rP�__static_attributes__�__classdictcell__��
__classdict__s@rrr�s�����
�
�
�I�s�F�
3�C��c�6�"�D��$�
�+�H��c�6�"�D��$�
�+�H���&6�7�N�
�S�%�
 �C��s�G�$�E��c�>�2�L�#�L�.�A���c�>�2�L�#�L�.�A���S�-�0�K�"�;�
�>���;��$�A��;��$�A�=�"
9�2�
3�2�
5�D�
Q�H�P�=�9�@�
?�
A�?�"B�0�6>�7�OI�b=�,7�9�G�8�Q�%J�N:�0�0� 0�0� K�6�6r
rc�.`�\sQsQsnQsQsQsUsP!)�ComprehensionTests�kc��UOUO22UO2FDoUOV22J	P!r)�extendrr�get_identifiers_recursive)r)r�resr
s&&& rr_�,ComprehensionTests.get_identifiers_recursivels6���
�
�2�%�%�'�(��/�/�#�B��*�*�2�3�$r
c�Z�,QNoSFD�oUOUQ59^tt^2[OUQQ2o,oUOV42SO[	STt,tFD
pUQ6XfJUMJ	to2]2PPP2J�	P!ttoh)%fhJ�9h)r)�comprrrJ)rz{x for x in [1]}z{x:x*x for x in [1]})r�r�r_r"r~)r)�compsrcr�idsrJs&     r�test_loopvar_in_only_one_scope�1ComprehensionTests.test_loopvar_in_only_one_scopeqs���
��
�D����4��(�(��&�&�t�S�&�9�����.�.�r�7�� � ���%A��A�S��a�a��%A�!B�A�F�	)�(���
&B�	)�(�(�s)�?B	�%
B�4B�:B	�B	�B*
�"B*
r�)rRrSrTrUr_rfrVrWrXs@rr[r[ks����4�
G�Gr
r[c�2`�\sQsQsnPsQsQsQsUsP!)�CommandLineTest�c���[OoUO[OU2[	UQ29^tt^2oUO[2PPP2[O29^tt^2o[OU,2PPP2WO2oUOQU2UOQU2UO2oUOQU8Q0U2UOQU2UOQU2UOQU2UOQU2P!)%fhK�9h)%fhK�9h)	�wz

z


z"symbol table for module from file �:z"    local symbol 'glob': def_localz*        global_implicit symbol 'glob': usez"    local symbol 'spam': def_localz%    symbol table for function 'spam':)r�TESTFN�
addCleanup�unlinkrD�writerr�captured_stdoutr��main�getvalue�assertIn�assertNotIn�
splitlines)r)r�rL�stdout�out�liness&     r�	test_file�CommandLineTest.test_file�s����#�#�����	�(�(�(�3�
�(�C�
 �
 �A�
�G�G�I��!�
�
$�
$�
&�
&�&��M�M�8�*�%�'��o�o����
�
�f�c�"�����3�'���� ���
�
�:�8�,�a�H�%�P��
�
�:�E�B��
�
�B�E�J��
�
�:�E�B��
�
�=�u�E�!�
 ��
&�
&�s$�E�E�E	�E	�E)	�"E)	c	���[O29^tt^2oUO[2UO	]2[O
29^tt^2o[O,2PPP2WO2oUO	]2[O
29^tt^2o[OQ,2PPP2UOUO2U2PPP2WO2oUOQU2P!)%fhK�9h)%fhKo9h)%fhKZ9h)r�-z,symbol table for module from file '<stdin>':)r�captured_stdinrqr�seekrrr�rsrtr"rwru)r)�stdinrxryrzs&    r�
test_stdin�CommandLineTest.test_stdin�s���
�
#�
#�
%�
%���K�K�	�"��J�J�q�M��(�(�*�*�f��
�
�b�!�+��/�/�#�C��J�J�q�M��(�(�*�*�f��
�
�s�e�$�+����V�_�_�.��4�&���� ���
�
�D�e�L�+�*��+�*��&�
%�sO�AE�#D,	�:AE�D?	�(E�,D<
�5D<
�7E�?E
�E
�
E�E"	�E"	r�)	rRrSrTrU�maxDiffr{r�rVrWrXs@rriri�s�����G�F�"M�Mr
ri�__main__)r�r�r�rF�unittestr�r�test.supportrrr�r�TestCaserr[rirRrsr�r
r�<module>r�s���

������"�+
�	�Zp��f�s6�8�$�$�s6�l
G��*�*�G�* M�h�'�'� M�F�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit