mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-09 06:14:17 +00:00
Ignore only D203 and fix Flake8 errors
This commit is contained in:
parent
a8576aff12
commit
5903576732
8 changed files with 37 additions and 3 deletions
|
|
@ -1,3 +1,14 @@
|
|||
"""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
|
||||
|
||||
"""
|
||||
import logging
|
||||
import sys
|
||||
|
||||
|
|
@ -5,7 +16,10 @@ try:
|
|||
from logging import NullHandler
|
||||
except ImportError:
|
||||
class NullHandler(logging.Handler):
|
||||
"""Shim for version of Python < 2.7."""
|
||||
|
||||
def emit(self, record):
|
||||
"""Do nothing."""
|
||||
pass
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue