HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/__pycache__/codeop.cpython-311.opt-1.pyc
�

��Vc)���dZddlZddlZd�ejD��Zgd�ZdZdZd�Zd�Z	d	�Z
dd�ZGd
�d��ZGd�d��Z
dS)aAUtilities 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|]}tt|����S�)�getattr�
__future__)�.0�fnames  �D:\Python311\Lib\codeop.py�
<listcomp>r
&s2��
8�
8�
8���Z��
'�
'�
8�
8�
8�)�compile_command�Compile�CommandCompilerii@c���|�d��D]&}|���}|r|ddkrn	�'|dkrd}	||||��S#t$rYnwxYwtj��5tjd��	||dz||��n5#t$r(}dt
|��vrYd}~ddd��dS�d}~wwxYw	ddd��dS#1swxYwYdS)N�
r�#�eval�pass�errorzincomplete input)�split�strip�SyntaxError�warnings�catch_warnings�simplefilter�str)�compiler�source�filename�symbol�line�es      r	�_maybe_compiler"1s������T�"�"�����z�z�|�|���	�D��G�s�N�	��E���V��	��F�
��x���&�1�1�1���
�
�
���
����

�	 �	"�	"�����g�&�&�&�	��H�V�d�]�H�f�5�5�5�5���	�	�	�!�S��V�V�+�
��t�t�t���������
�����	����
6�	��������������������sT�A�
A �A �6C �B�C �
C�'C
�8C �	C
�
C�C � C$�'C$c�f�t|��}t|��}d|vrd|vrdS||krdSdS)Nzwas never closedFT)�repr)�err1�err2�rep1�rep2s    r	�_is_syntax_errorr)LsM����:�:�D���:�:�D��T�!��&8�D�&@���u��t�|���t��5rc�@�t|||ttz��S�N)�compile�PyCF_DONT_IMPLY_DEDENT�PyCF_ALLOW_INCOMPLETE_INPUT�rrrs   r	�_compiler0Us���6�8�V�-C�Fa�-a�b�b�br�<input>�singlec�0�tt|||��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"r0r/s   r	rrXs��&�(�F�H�f�=�=�=rc��eZdZdZd�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�.�ttz|_dSr+)r-r.�flags��selfs r	�__init__zCompile.__init__rs��+�.I�I��
�
�
rc��t||||jd��}tD]&}|j|jzr|xj|jzc_�'|S)NT)r,r6�	_features�co_flags�
compiler_flag)r8rrr�codeob�features      r	�__call__zCompile.__call__usS�����6�4�:�t�D�D�� �	4�	4�G����!6�6�
4��
�
�g�3�3�
�
���
rN��__name__�
__module__�__qualname__�__doc__r9r@rrr	r
r
ms?������$�$�J�J�J�����rr
c� �eZdZdZd�Zdd�ZdS)ra(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��|_dSr+)r
rr7s r	r9zCommandCompiler.__init__�s���	�	��
�
�
rr1r2c�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)r8rrrs    r	r@zCommandCompiler.__call__�s��&�d�m�V�X�v�F�F�FrN�r1r2rArrr	rr|sG������$�$�"�"�"�G�G�G�G�G�GrrrI)rErr�all_feature_namesr;�__all__r-r.r"r)r0rr
rrrr	�<module>rLs�� � �D��������
8�
8�$�6�
8�
8�
8�	�<�
;�
;��
��$�����6���c�c�c�>�>�>�>�*
�
�
�
�
�
�
�
�G�G�G�G�G�G�G�G�G�Gr