| Server IP : 162.19.112.25 / Your IP : 216.73.216.88 Web Server : LiteSpeed System : Linux qamar.tasjeel.ae 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64 User : archiart ( 1428) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /opt/cloudlinux/venv/lib/python3.11/site-packages/pyflakes/__pycache__/ |
Upload File : |
�
��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.11/venv/lib/python3.11/site-packages/pyflakes/api.py�<lambda>zcheck.<locals>.<lambda>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- � �"