관리-도구
편집 파일: codeop.cpython-311.opt-1.pyc
� ����P�{U���������������������������d�Z�ddlZddlZd��ej��������D���������������Zg�d�ZdZdZd��Zd��Z dd �Z dd �Z�G�d��d������������Z�G�d��d������������Z dS�)aA��Utilities to compile possibly incomplete Python source code. This module provides two interfaces, broadly similar to the builtin function compile(), which take program text, a filename and a 'mode' and: - Return code object if the command is complete and valid - Return None if the command is incomplete - Raise SyntaxError, ValueError or OverflowError if the command is a syntax error (OverflowError and ValueError can be produced by malformed literals). The two interfaces are: compile_command(source, filename, symbol): Compiles a single command in the manner described above. CommandCompiler(): Instances of this class have __call__ methods identical in signature to compile_command; the difference is that if the instance compiles program text containing a __future__ statement, the instance 'remembers' and compiles all subsequent program texts with the statement in force. The module also provides another class: Compile(): Instances of this class act like the built-in function compile, but with 'memory' in the sense described above. �����Nc������������������8�����g�|�]}t����������t����������|��������������S���)�getattr� __future__)�.0�fnames��� �-/opt/alt/python311/lib64/python3.11/codeop.py� <listcomp>r ���&���s2������� 8�� 8�� 8����Z�� '� '�� 8�� 8�� 8�����)�compile_command�Compile�CommandCompileri���i�@��c������������������0����|����������������������d������������D�]&}|�����������������������������������}|r|d���������dk����r�n �'|dk����rd}t����������j����������������������5��t����������j��������dt ����������t����������f������������� ��|�|||�������������ni#�t����������$�r\� ��|�|dz���||�������������Y�d�d�d��������������d�S�#�t����������$�r-}dt����������|������������v�rY�d�}~Y�d�d�d��������������d�S�Y�d�}~nd�}~ww�xY�wY�nw�xY�wd�d�d��������������n#�1�swxY�w�Y����|�|||d� ������������S�) N� r����#�eval�pass�ignorezincomplete inputF)�incomplete_input) �split�strip�warnings�catch_warnings�simplefilter� SyntaxWarning�DeprecationWarning�SyntaxError�str)�compiler�source�filename�symbol�line�es��� r ����_maybe_compiler%���1���s���������T�"�"�������z�z�|�|���� �D��G�s�N�N��E���V����F�� � � "� "�� �� ���h��8J�(K�L�L�L� ��H�V�X�v�.�.�.�.���� �� �� � ����$���&�9�9�9�� �� �� �� �� �� �� �� ����� �� �� �%��Q���/�/��4�4�4�4� �� �� �� �� �� �� �� ��0�/�/�/�/����� ����/�/� ���� �� �� �� �� �� �� �� �� �� �� ����� �� �� �� ���8�F�H�f�u�E�E�E�Esl����"C>�; B �C>� C/�B2�$C>�2 C)�<C$� C/�C>�C/�$C)�)C/�,C>�.C/�/C>�>D�Dc������������������f�����t����������|�������������}t����������|������������}d|v�rd|v�rdS�||k����rdS�dS�)Nzwas never closedFT)�repr)�err1�err2�rep1�rep2s��� r ����_is_syntax_errorr,���K���sF��������:�:�D���:�:�D��T�!�!�&8�D�&@�&@��u��t�|�|��t��5r���Tc������������������V�����d}|r|t�����������z��}|t����������z��}t����������|�|||������������S�)Nr���)�PyCF_ALLOW_INCOMPLETE_INPUT�PyCF_DONT_IMPLY_DEDENT�compile)r ���r!���r"���r����flagss��� r ����_compiler2���T���s9������ �E���(� �,�,�� �'�'���6�8�V�U�3�3�3r����<input>�singlec������������������0�����t����������t����������|�||������������S�)a���Compile a command and determine whether it is incomplete. Arguments: source -- the source string; may contain \n characters filename -- optional filename from which source was read; default "<input>" symbol -- optional grammar start symbol; "single" (default), "exec" or "eval" Return value / exceptions raised: - Return a code object if the command is complete and valid - Return None if the command is incomplete - Raise SyntaxError, ValueError or OverflowError if the command is a syntax error (OverflowError and ValueError can be produced by malformed literals). )r%���r2���)r ���r!���r"���s��� r ���r���r���[���s������&��(�F�H�f�=�=�=r���c�������������������������e�Zd�ZdZd��Zd��ZdS�)r ���z�Instances of this class behave much like the built-in compile function, but if one is used to compile text containing a future statement, it "remembers" and compiles all subsequent program texts with the statement in force.c������������������.�����t�����������t����������z��|�_��������d�S��N)r/���r.���r1�����selfs��� r ����__init__zCompile.__init__u���s������+�.I�I�� � � r���c������������������������|�j���������}|���������������������dd������������du�r|t�����������z��}|t�����������z��}t ����������||||d������������}t ����������D�]&}|j��������|j��������z��r|�xj���������|j��������z��c_����������'|S�)Nr���TF)r1����getr/���r.���r0���� _features�co_flags� compiler_flag)r:���r ���r!���r"����kwargsr1����codeob�features��� r ����__call__zCompile.__call__x���s�������� ���:�:�(�$�/�/�5�8�8��,�,�,�E��1�1�1�E����6�5�$�?�?�� �� 4�� 4�G����!6�6�� 4�� � �g�3�3� � ��� r���N��__name__� __module__�__qualname__�__doc__r;���rD���r���r���r ���r ���r ���p���s?��������������$��$�J��J��J� �� �� �� �� r���r ���c�������������������� �����e�Zd�ZdZd��Zdd�ZdS�)r���a(��Instances of this class have __call__ methods identical in signature to compile_command; the difference is that if the instance compiles program text containing a __future__ statement, the instance 'remembers' and compiles all subsequent program texts with the statement in force.c������������������,�����t������������������������|�_��������d�S�r8���)r ���r���r9���s��� r ���r;���zCommandCompiler.__init__����s������� � �� � � r���r3���r4���c������������������0�����t����������|�j��������|||������������S�)a���Compile a command and determine whether it is incomplete. Arguments: source -- the source string; may contain \n characters filename -- optional filename from which source was read; default "<input>" symbol -- optional grammar start symbol; "single" (default) or "eval" Return value / exceptions raised: - Return a code object if the command is complete and valid - Return None if the command is incomplete - Raise SyntaxError, ValueError or OverflowError if the command is a syntax error (OverflowError and ValueError can be produced by malformed literals). )r%���r���)r:���r ���r!���r"���s��� r ���rD���zCommandCompiler.__call__����s������&��d�m�V�X�v�F�F�Fr���N�r3���r4���rE���r���r���r ���r���r�������sG��������������$��$�"��"��"�G��G��G��G��G��Gr���r���)TrM���)rI���r���r����all_feature_namesr>����__all__r/���r.���r%���r,���r2���r���r ���r���r���r���r ����<module>rP������s���� �� �D������������� 8�� 8�$�6� 8�� 8�� 8� ��<� ;� ;�� ����$���F��F��F�4�����4��4��4��4�>��>��>��>�*���������������&G��G��G��G��G��G��G��G��G��Gr���