ok
Direktori : /opt/cloudlinux/venv/lib/python3.11/site-packages/pyflakes/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/pyflakes/__pycache__/api.cpython-311.pyc |
� �܋f� � � � 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.6/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- � �"