*j S r SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSK r / SQr
" S S\5 r " S S\R 5 rS r SS jrS
r\S:X a \" 5 gg)
zqRoutine to "compile" a .py file to a .pyc file.
This module has intimate knowledge of the format of .pyc files.
N)compilemainPyCompileErrorPycInvalidationModec ( \ rS rSrSrSS jrS rSrg)r ak 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 < UR nU[ L a; SR [ R " X5 5 nUR SSU- 5 nO
SU< SU< 3n[ R X=( d UXRU5 XPl X l X0l
U=( d UU l g )N zFile "