
    g                       d Z ddlmZ ddlZddlZ ej
                  e      Zej                   ej                                dZ
 ed e
j                  d      D              Zej                  ej                  dZdZdef	 	 	 	 	 	 	 d
d	Zy)zTop-level module for Flake8.

This module

- initializes logging for the command-line tool
- tracks the version of the package
- provides a way to configure logging for the command-line tool

.. autofunction:: flake8.configure_logging

    )annotationsNz7.1.1c              #  T   K   | ]   }|j                         st        |       " y w)N)isdigitint).0is     R/var/www/html/brdwt/brdwt/brdwtenv/lib/python3.12/site-packages/flake8/__init__.py	<genexpr>r
      s     OA199;QOs   ((.)      zO%(name)-25s %(processName)-11s %(relativeCreated)6d %(levelname)-8s %(message)sc                   | dk  ryt        | t        t                    } t        |    }|r|dv r%t        t        |xs d      }t
        j                  }n|}t
        j                  } ||      }|j                  t        j                  |             t        j                  |       t        j                  |       t        j                  d|t               y)aI  Configure logging for flake8.

    :param verbosity:
        How verbose to be in logging information.
    :param filename:
        Name of the file to append log information to.
        If ``None`` this will log to ``sys.stderr``.
        If the name is "stdout" or "stderr" this will log to the appropriate
        stream.
    r   N)stderrstdoutr   z/Added a %s logging handler to logger root at %s)minmax_VERBOSITY_TO_LOG_LEVELgetattrsysloggingStreamHandlerFileHandlersetFormatter	FormatterLOG
addHandlersetLeveldebug__name__)	verbosityfilename	logformat	log_levelfileobjhandler_clshandlers          r	   configure_loggingr'   $   s     A~Is#:;<I'	2Ix#77#x384-4-B-B))'"G**956NN7LLII98X    )r    r   r!   z
str | Noner"   strreturnNone)__doc__
__future__r   r   r   	getLoggerr   r   r   NullHandler__version__tuplesplit__version_info__INFODEBUGr   
LOG_FORMATr'    r(   r	   <module>r8      s   
 #  
g! "w""$ %O):):3)?OO  ||}}	 "   """ " 
	"r(   