python (3.12.0)
ˑe d Z ddlZddlZddlZddlZddlZddlZddlZddl Z g dZ
G d de Z G d dej Zd Z dd Zd
Zedk( r e yy)
zqRoutine to "compile" a .py file to a .pyc file.
This module has intimate knowledge of the format of .pyc files.
N)compilemainPyCompileErrorPycInvalidationModec e Zd ZdZddZd Zy)r a Exception raised when an error occurs while attempting to
compile the file.
To raise this exception, use
raise PyCompileError(exc_type,exc_value,file[,msg])
where
exc_type: exception type to be used in error message
type name can be accesses as class variable
'exc_type_name'
exc_value: exception value to be used in error message
can be accesses as class variable 'exc_value'
file: name of file being compiled to be used in error message
can be accesses as class variable 'file'
msg: string message to be written as error message
If no value is given, a default exception message will be
given, consistent with 'standard' py_compile output.
message (or default) can be accesses as class variable
'msg'
c , |j }|t u r;dj t j || }|j dd|z }nd|d|}t j | |xs |||| || _ || _ || _
|xs || _ y )N zFile "<string>"z File "%s"zSorry: z: )__name__SyntaxErrorjoin tracebackformat_exception_onlyreplace Exception__init__
exc_type_name exc_valuefilemsg)selfexc_typer r r r tbtexterrmsgs >/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/py_compile.pyr zPyCompileError.__init__. s ))
{"WWY<<)% &F^^$5{T7IJF #
)6i@F4
vmIdK*" =& c | j S )N)r )r s r __str__zPyCompileError.__str__>