Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/pyflakes/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/pyflakes/__pycache__/reporter.cpython-311.pyc

�

�܋f���:�dZddlZddlZGd�d��Zd�ZdS)z
Provide the Reporter class.
�Nc�*�eZdZdZd�Zd�Zd�Zd�ZdS)�Reporterz:
    Formats the results of pyflakes checks to users.
    c�"�||_||_dS)a�
        Construct a L{Reporter}.

        @param warningStream: A file-like object where warnings will be
            written to.  The stream's C{write} method must accept unicode.
            C{sys.stdout} is a good value.
        @param errorStream: A file-like object where error output will be
            written to.  The stream's C{write} method must accept unicode.
            C{sys.stderr} is a good value.
        N)�_stdout�_stderr)�self�
warningStream�errorStreams   �b/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pyflakes/reporter.py�__init__zReporter.__init__s��%���"�����c�F�|j�|�d|�d���dS)a
        An unexpected error occurred trying to process C{filename}.

        @param filename: The path to a file that we could not process.
        @ptype filename: C{unicode}
        @param msg: A message explaining the problem.
        @ptype msg: C{unicode}
        z: �
N)r�write)r�filename�msgs   r�unexpectedErrorzReporter.unexpectedErrors1��	
����h�1�1�#�1�1�1�2�2�2�2�2r
c
�j�|�d}n|���d}t|d��}|�itjdkr'|�%|t	|��t	|��z
z
dz}t|d��}|j�d||||fz��n |j�d|||fz��|�t|j�|��|j�d��|�@|j�tjdd	|d|dz
���d
z��dSdSdS)a0
        There was a syntax error in C{filename}.

        @param filename: The path to the file with the syntax error.
        @ptype filename: C{unicode}
        @param msg: An explanation of the syntax error.
        @ptype msg: C{unicode}
        @param lineno: The line number where the syntax error occurred.
        @ptype lineno: C{int}
        @param offset: The column on which the syntax error occurred, or None.
        @ptype offset: C{int}
        @param text: The source code containing the syntax error.
        @ptype text: C{unicode}
        N����)��z
%s:%d:%d: %s
z
%s:%d: %s
rz\S� z^
)	�
splitlines�max�sys�version_info�lenrr�re�sub)rrr�lineno�offset�text�lines       r�syntaxErrorzReporter.syntaxError'se���<��D�D��?�?�$�$�R�(�D��V�Q��������&�(�(�T�-=��3�t�9�9�s�4�y�y�#8�9�A�=�����^�^�F��L���/� (�&�&�#�>� ?�
@�
@�
@�
@�
�L���}��&�#�/F�F�G�G�G����L���t�$�$�$��L���t�$�$�$��!���"�"�2�6�%��d�;�F�Q�J�;�6G�#H�#H�#(�$)�*�*�*�*�*�	��"�!r
c��|j�t|����|j�d��dS)zp
        pyflakes found something wrong with the code.

        @param: A L{pyflakes.messages.Message}.
        rN)rr�str)r�messages  r�flakezReporter.flakeOs<��	
����3�w�<�<�(�(�(�����4� � � � � r
N)�__name__�
__module__�__qualname__�__doc__rrr%r)�r
rrr	s[��������#�#�#�	3�	3�	3�&*�&*�&*�P!�!�!�!�!r
rc�J�ttjtj��S)zI
    Make a reporter that can be used when no reporter is specified.
    )rr�stdout�stderrr.r
r�_makeDefaultReporterr2Ys���C�J��
�+�+�+r
)r-rrrr2r.r
r�<module>r3sm����
�	�	�	�
�
�
�
�M!�M!�M!�M!�M!�M!�M!�M!�`,�,�,�,�,r

Hacked By AnonymousFox1.0, Coded By AnonymousFox