bg :dZddlZddlZGddZdZdS)z Provide the Reporter class. Nc*eZdZdZdZdZdZdZdS)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.7/venv/lib/python3.11/site-packages/pyflakes/reporter.py__init__zReporter.__init__s% " cF|j|d|ddS)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)rwrite)rfilenamemsgs r unexpectedErrorzReporter.unexpectedErrors1 h11#11122222r c j|d}n|d}t|d}|itjdkr'|%|t |t |z z dz}t|d}|jd||||fzn |jd|||fz|t|j||jd|@|jtjdd |d|dz d zdSdSdS) 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^ ) splitlinesmaxsys version_infolenrrresub)rrrlinenooffsettextlines r syntaxErrorzReporter.syntaxError'se <DD??$$R(DVQ  &((T-=3t99s4yy#89A=^^F L  / (&&#> ? @ @ @ @ L  }&#/FF G G G   L  t $ $ $ L  t $ $ $! ""26%d;FQJ;6G#H#H#($)*****  "!r c|jt||jddS)zp pyflakes found something wrong with the code. @param: A L{pyflakes.messages.Message}. rN)rrstr)rmessages r flakezReporter.flakeOs< 3w<<((( 4     r N)__name__ __module__ __qualname____doc__r rr%r)r r rr s[ # # # 3 3 3&*&*&*P!!!!!r rcJttjtjS)zI Make a reporter that can be used when no reporter is specified. )rrstdoutstderrr.r r _makeDefaultReporterr2Ys CJ + ++r )r-rrrr2r.r r r3sm M!M!M!M!M!M!M!M!`,,,,,r