Spade
Mini Shell
3
\j�@s`ddlZdd�ejD�ZdddgZdZdd �Zd
d�Zddd�ZGdd�d�ZGdd�d�Z dS)�NcCsg|]}tt|��qS�)�getattr�
__future__)�.0Zfnamerr�/usr/lib64/python3.6/codeop.py�
<listcomp>=sr�compile_command�Compile�CommandCompileric-Cs*x8|jd�D]}|j�}|r|ddkrPqW|dkr:d}d}}}d}} }
y||||�}Wn"tk
r�}zWYdd}~XnXy||d||�} Wn&tk
r�}z
|}WYdd}~XnXy||d||�}
Wn&tk
r�}z
|}WYdd}~XnX|�r|S| �r&t|�t|�k�r&|�dS)N�
r�#�eval�passz
)�split�strip�SyntaxError�repr)�compiler�source�filename�symbol�line�errZerr1Zerr2�code�code1�code2�errr�_maybe_compileDs0rcCst|||t�S)N)�compile�PyCF_DONT_IMPLY_DEDENT)rrrrrr�_compileesr
�<input>�singlecCstt|||�S)N)rr
)rrrrrrrhsc@seZdZdd�Zdd�ZdS)r cCs
t|_dS)N)r�flags)�selfrrr�__init__�szCompile.__init__cCs@t||||jd�}x(tD]
}|j|j@r|j|jO_qW|S)N�)rr#� _features�co_flagsZ
compiler_flag)r$rrrZcodeobZfeaturerrr�__call__�s
zCompile.__call__N)�__name__�
__module__�__qualname__r%r)rrrrr |sc@seZdZdd�Zddd�ZdS) r
cCst�|_dS)N)r r)r$rrrr%�szCommandCompiler.__init__�<input>r"cCst|j|||�S)N)rr)r$rrrrrrr)�szCommandCompiler.__call__N)r-r")r*r+r,r%r)rrrrr
�s)r!r")
rZall_feature_namesr'�__all__rrr rr r
rrrr�<module>;s
!