mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-30 10:46:54 +00:00
Start adding logging for --verbose
This commit is contained in:
parent
f539464368
commit
a6d790cc10
2 changed files with 23 additions and 0 deletions
|
|
@ -1 +1,12 @@
|
|||
import logging
|
||||
|
||||
try:
|
||||
from logging import NullHandler
|
||||
except ImportError:
|
||||
class NullHandler(logging.Handler):
|
||||
def emit(self, record):
|
||||
pass
|
||||
|
||||
logging.getLogger(__name__).addHandler(NullHandler())
|
||||
|
||||
__version__ = '3.0.0a1'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,16 @@
|
|||
import logging
|
||||
import optparse
|
||||
import os.path
|
||||
import sys
|
||||
|
||||
if sys.version_info < (3, 0):
|
||||
import ConfigParser as configparser
|
||||
else:
|
||||
import configparser
|
||||
|
||||
from . import utils
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Option(object):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue