OwlCyberSecurity - MANAGER
Edit File: codeop.cpython-310.opt-1.pyc
o ����S�g�����������������������@���sv���d�Z�ddlZddlZdd��ejD��Zg�d�ZdZdZdd ��Zd d��Z dd ��Z ddd�ZG�dd��d�ZG�dd��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�����������������C���s���g�|�]}t�t|��qS���)�getattr� __future__)�.0Zfnamer���r����-/opt/alt/python310/lib64/python3.10/codeop.py� <listcomp>&���s�����r���)�compile_command�Compile�CommandCompileri���i�@��c�����������������C���s��|��d�D�]}|���}|r|d�dkr�nq|dkrd}t����[�t�dttf��z|�|||��W�nB�tys���z|�|d�||��W�Y�W�d�����d�S��typ�}�zdt|�v�rfW�Y�d�}~Y�W�d�����d�S�W�Y�d�}~nd�}~ww�Y�nw�W�d�����n1�s~w���Y��|�|||�S�)N� r����#�eval�pass�ignorezincomplete input) �split�strip�warnings�catch_warnings�simplefilter� SyntaxWarning�DeprecationWarning�SyntaxError�str)�compiler�source�filename�symbol�line�er���r���r����_maybe_compile1���s8���� �� ����� r���c�����������������C���s4���t�|��}t�|�}d|v�rd|v�rdS�||krdS�dS�)Nzwas never closedFT)�repr)Zerr1Zerr2Zrep1Zrep2r���r���r����_is_syntax_errorL���s���r!���c�����������������C���s���t�|�||ttB��S��N)�compile�PyCF_DONT_IMPLY_DEDENT�PyCF_ALLOW_INCOMPLETE_INPUT�r���r���r���r���r���r����_compileU���s���r'����<input>�singlec�����������������C���s���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���r'���r&���r���r���r���r���X���s���r���c�������������������@���s ���e�Zd�ZdZdd��Zdd��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�����������������C���s���t�tB�|�_d�S�r"���)r$���r%����flags��selfr���r���r����__init__r���s���zCompile.__init__c�����������������C���s<���t�||||�jd�}tD�]}|j|j@�r|��j|jO��_q|S�)NT)r#���r*���� _features�co_flagsZ compiler_flag)r,���r���r���r���ZcodeobZfeaturer���r���r����__call__u���s����zCompile.__call__N��__name__� __module__�__qualname__�__doc__r-���r0���r���r���r���r���r ���m���s����r ���c�������������������@���s"���e�Zd�ZdZdd��Zd dd�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�����������������C���s���t���|�_d�S�r"���)r ���r���r+���r���r���r���r-�������s���zCommandCompiler.__init__r(���r)���c�����������������C���s���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���r���r���r���r0�������s���zCommandCompiler.__call__N�r(���r)���r1���r���r���r���r���r ���|���s����r ���r6���)r5���r���r���Zall_feature_namesr.����__all__r$���r%���r���r!���r'���r���r ���r ���r���r���r���r����<module>���s����"�