HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/env/lib/python3.10/site-packages/flake8/__pycache__/__init__.cpython-310.pyc
o

%we��@szdZddlmZddlZddlZe�e�Ze�e�	��dZ
edd�e
�d�D��Z
ejejd�Zd	Zdefddd�ZdS)z�Top-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

�)�annotationsNz6.1.0ccs �|]}|��rt|�VqdS)N)�isdigit�int)�.0�i�r�H/home/arjun/projects/env/lib/python3.10/site-packages/flake8/__init__.py�	<genexpr>s�r	�.)��zO%(name)-25s %(processName)-11s %(relativeCreated)6d %(levelname)-8s %(message)s�	verbosityr�filename�
str | None�	logformat�str�return�NonecCs�|dkrdSt|tt��}t|}|r|dvr"tt|pd�}tj}n|}tj}||�}|�t�	|��t
�|�t
�|�t
�
d|t�dS)aIConfigure 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.
    rN)�stderr�stdoutrz/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__)r
rr�	log_level�fileobj�handler_cls�handlerrrr�configure_logging$s 

�r))r
rrrrrrr)�__doc__�
__future__rrr�	getLoggerr$r r!�NullHandler�__version__�tuple�split�__version_info__�INFO�DEBUGr�
LOG_FORMATr)rrrr�<module>s 
���