
    WOg                     2    S r SSKrSSKr " S S5      rS rg)z
Provide the Reporter class.
    Nc                   0    \ rS rSrSrS rS rS rS rSr	g)	Reporter	   z2
Formats the results of pyflakes checks to users.
c                     Xl         X l        g)ai  
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      V/Users/admin/workspace/ai/Jarvis/env/lib/python3.13/site-packages/pyflakes/reporter.py__init__Reporter.__init__   s     %"    c                 F    U R                   R                  U SU S35        g)z
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   unexpectedErrorReporter.unexpectedError   s#     	hZr#b12r   c           
         Uc  SnOUR                  5       S   n[        U=(       d    SS5      nUb-  [        US5      nU R                  R                  SXXB4-  5        O U R                  R                  SXU4-  5        Ubu  U R                  R                  U5        U R                  R                  S5        Ub;  U R                  R                  [        R
                  " SS	USUS-
   5      S
-   5        ggg)a  
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}
Nr      z%s:%d:%d: %s
z
%s:%d: %s
r   z\S z^
)
splitlinesmaxr   r   resub)r	   r   r   linenooffsettextlines          r   syntaxErrorReporter.syntaxError'   s     <D??$R(D V[q!$^FLL/ (&> ? @ LL}#/FFGLLt$LLt$!""266%d;FQJ6G#H#($) * " r   c                     U R                   R                  [        U5      5        U R                   R                  S5        g)zX
pyflakes found something wrong with the code.

@param: A L{pyflakes.messages.Message}.
r   N)r   r   str)r	   messages     r   flakeReporter.flakeN   s,     	3w<(4 r   )r   r   N)
__name__
__module____qualname____firstlineno____doc__r   r   r#   r(   __static_attributes__ r   r   r   r   	   s    #	3%*N!r   r   c                  R    [        [        R                  [        R                  5      $ )zA
Make a reporter that can be used when no reporter is specified.
)r   sysstdoutstderrr0   r   r   _makeDefaultReporterr5   X   s     CJJ

++r   )r.   r   r2   r   r5   r0   r   r   <module>r6      s$    
 
L! L!^,r   