/opt/cloudlinux/venv/lib/python3.11/site-packages/pyflakes/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/pyflakes/__pycache__/api.cpython-311.pyc (8627B)
§
¥Äj]E%´hã ó¬ — d Z ddlZddlZddlZddlZddlZddlmZmZ ddlm Z
g d¢Z ej d¦ « Z
dd„Zdd„Zd „ Zd
„ Zd„ Zd„ Zd
„ Zdd„ZdS )z,
API for the command-line I{pyflakes} tool.
é N)ÚcheckerÚ__version__)Úreporter)ÚcheckÚ checkPathÚcheckRecursiveÚiterSourceCodeÚmains# ^#!.*\bpython(3(\.\d+)?|w)?[dmu]?\sc ó* — |€t j ¦ « } t j | |¬¦ « }nm# t $ r>}| ||j d |j |j |j ¦ « Y d}~dS d}~wt $ r | |d¦ « Y dS w xY wt j
| ¦ « }t j |||¬¦ « }|j d„ ¬¦ « |j D ]}| |¦ « Œt% |j ¦ « S ) a³
Check the Python source given by C{codeString} for flakes.
@param codeString: The Python source to check.
@type codeString: C{str}
@param filename: The name of the file the source came from, used to report
errors.
@type filename: C{str}
@param reporter: A L{Reporter} instance, where errors and warnings will be
reported.
@return: The number of warnings emitted.
@rtype: C{int}
N)Úfilenamer é zproblem decoding source)Úfile_tokensr c ó — | j S ©N)Úlineno)Úms ú^/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/pyflakes/api.pyú
zcheck..1 s € !¤(€ ó )Úkey)ÚmodReporterÚ_makeDefaultReporterÚastÚparseÚSyntaxErrorÚsyntaxErrorÚargsr ÚoffsetÚtextÚ ExceptionÚunexpectedErrorr Úmake_tokensÚCheckerÚmessagesÚsortÚflakeÚlen)Ú
codeStringr r ÚtreeÚer ÚwÚwarnings r r r s- € ð" ÐÝÔ3Ñ5Ô5ˆðÝŒy˜¨hÐ7Ñ7Ô7ˆˆøÝð ð ð Ø×Ò˜X q¤v¨a¤y°!´(¸A¼HÀaÄfÑMÔMÐM؈qˆqˆqˆqˆqøøøøÝð ð ð Ø× Ò Ð+DÑEÔEÐE؈qˆqðøøøõ Ô% jÑ1Ô1€KÝŒ˜¨+ÀÐIÑIÔI€AØ„J‡O‚OÐ*Ð*€OÑ+Ô+Ð+Ø”:ð ð ˆØ�Š�wÑÔÐÐ݈qŒz‰?Œ?Ðs —. ®
B¸3A1Á1#BÂBc ó< — |€t j ¦ « } t | d¦ « 5 }| ¦ « }ddd¦ « n# 1 swxY w Y n9# t $ r,}| | |j d ¦ « Y d}~dS d}~ww xY wt || |¦ « S )zÒ
Check the given path, printing out any warnings detected.
@param reporter: A L{Reporter} instance, where errors and warnings will be
reported.
@return: the number of warnings printed
NÚrbr
)r r ÚopenÚreadÚOSErrorr! r r )r r ÚfÚcodestrr* s r r r 7 sé € ð ÐÝÔ3Ñ5Ô5ˆðÝ
�(˜DÑ
!Ô
!ð QØ—f’f‘h”hˆGð ð ð ñ ô ð ð ð ð ð ð øøøð ð ð ð øøåð ð ð Ø× Ò ¨1¬6°!¬9Ñ5Ô5Ð5؈qˆqˆqˆqˆqøøøøðøøøõ �˜( HÑ-Ô-Ð-s9 —A §A¼A ÁAÁA ÁAÁA Á
B
Á!BÂB
c óX — | d¦ « rdS | d¦ « rdS d} t | d¦ « 5 }| |¦ « }|s ddd¦ « dS ddd¦ « n# 1 swxY w Y n# t $ r Y dS w xY wt |¦ « S )z0Return True if filename points to a Python file.z.pyTú~Fé€ r. N)Úendswithr/ r0 r1 ÚPYTHON_SHEBANG_REGEXÚmatch)r Ú max_bytesr2 r s r ÚisPythonFiler; K s* € à×Ò˜ÑÔð Øˆtð ×Ò˜ÑÔð Øˆuà€IðÝ
�(˜DÑ
!Ô
!ð QØ—6’6˜)Ñ$Ô$ˆDØð
Øð ð ð ñ ô ð ð ð ð
ð ð ð ñ ô ð ð ð ð ð ð øøøð ð ð ð øøõ ð ð ð Øˆuˆuðøøøõ ×%Ò% dÑ+Ô+Ð+s; ²B ÁA5ÁB Á)B Á5A9Á9B Á<A9Á=B Â
BÂBc # ó K — | D ]y}t j |¦ « rTt j |¦ « D ]>\ }}}|D ]5}t j ||¦ « }t |¦ « r|V — Œ6Œ?Œu|V — ŒzdS )zç
Iterate over all Python source files in C{paths}.
@param paths: A list of paths. Directories will be recursed into and
any .py files found will be yielded. Any non-directories will be
yielded as-is.
N)ÚosÚpathÚisdirÚwalkÚjoinr; )Úpathsr> ÚdirpathÚdirnamesÚ filenamesr Ú full_paths r r r a sª è è € ð ð ð ˆÝ
Œ7�=Š=˜ÑÔð Ý02´¸±
´
ð
(ð
(Ñ,�˜ 9Ø )ð (ð (�HÝ "¤§¢¨W°hÑ ?Ô ?�IÝ# IÑ.Ô.ð (Ø'˜˜˜øð(ð
(ð ˆJˆJˆJˆJðð r c óT — d}t | ¦ « D ]}|t ||¦ « z
}Œ|S )a;
Recursively check all source files in C{paths}.
@param paths: A list of paths to Python source files and directories
containing Python source files.
@param reporter: A L{Reporter} where all of the warnings and errors
will be reported to.
@return: The number of warnings found.
r )r r )rB r ÚwarningsÚ
sourcePaths r r r t s; € ð €HÝ$ UÑ+Ô+ð 4ð 4ˆ
Ø•I˜j¨(Ñ3Ô3Ñ3ˆˆØ€Or c ó° ‡— ddl } t || ¦ « }n# t $ r Y dS w xY wˆfd„} | ||¦ « dS # t $ r Y dS w xY w)z¥Handles a signal with sys.exit.
Some of these signals (SIGPIPE, for example) don't exist or are invalid on
Windows. So, ignore errors that might arise.
r Nc ó0 •— t j ‰¦ « d S r )ÚsysÚexit)Úsigr2 Úmessages €r Úhandlerz_exitOnSignal..handler” s ø€ ÝŒ�ÑÔÐÐÐr )ÚsignalÚgetattrÚAttributeErrorÚ
ValueError)ÚsigNamerO rQ Ú sigNumberrP s ` r Ú
_exitOnSignalrW „ s¤ ø€ ð €M€M€MðݘF GÑ,Ô,ˆ ˆ øÝð ð ð ð ˆˆð øøøðð ð ð ð ð
�
Š
�i Ñ)Ô)Ð)Ð)Ð)øÝð
ð
ð
ð
ˆˆð
øøøs ‡ ˜
&¥&¯A Á
AÁAc ód — t ›dt j ¦ « ›dt j ¦ « ›�S )zQ
Retrieve and format package version along with python version & OS used
z Python z on )r ÚplatformÚpython_versionÚsystem© r r Ú_get_versionr] Ÿ s5 € õ
ˆ[ˆ[�(Ô1Ñ3Ô3Ð3Ð3µX´_Ñ5FÔ5FÐ5Fð
Hð Ir c óô — ddl }t dd¦ « t dd¦ « | | d¬¦ « }| d d
dt ¦ « ¬¦ « | d
dd¬¦ « | |¬¦ « j }t j ¦ « }|rt ||¦ « }n-t t j
¦ « d|¦ « }t |dk ¦ « ‚)z&Entry point for the script "pyflakes".r NÚSIGINTz... stoppedÚSIGPIPEr
z$Check Python source files for errors)ÚprogÚdescriptionz-Vz --versionÚversion)Úactionrc r> Ú*z7Path(s) of Python file(s) to check. STDIN if not given.)ÚnargsÚhelp)r z)ÚargparserW ÚArgumentParserÚadd_argumentr] Ú
parse_argsr> r r r r rL Ústdinr0 Ú
SystemExit)ra r rh Úparserr rH s r r
r
§ s € à€O€O€Oõ �(˜MÑ*Ô*Ð*Ý�)˜QÑÔÐà
×
$Ò
$¨$Ø1Wð %ñ Yô Y€Fà
×Ò˜˜k°)Å\Á^Ä^ÐÑTÔTÐTØ
×Ò˜ cØVð ñ Xô Xð Xà×Ò $ÐÑ'Ô'Ô,€DÝÔ/Ñ1Ô1€HØð @Ý! $¨Ñ1Ô1ˆˆå�œŸšÑ)Ô)¨9°hÑ?Ô?ˆÝ
�X ’\Ñ
"Ô
"Ð"r r )NN)Ú__doc__r r= rY ÚrerL Úpyflakesr r r r Ú__all__Úcompiler8 r r r; r r rW r] r
r\ r r úrt s ððð ð €
€
€
Ø € € € Ø €€€Ø € € € Ø
€
€
€
à )Ð )Ð )Ð )Ð )Ð )Ð )Ð )Ø ,Ð ,Ð ,Ð ,Ð ,Ð ,à
LÐ
LÐ
L€à!�r”zÐ"IÑJÔJÐ ð"ð "ð "ð "ðJ.ð .ð .ð .ð(,ð ,ð ,ð,ð ð ð&
ð
ð
ð
ð
ð
ð6Ið Ið Ið#ð #ð #ð #ð #ð #r