Fix lint
This commit is contained in:
parent
1cfadbf034
commit
bcb06f0cc6
@ -22,7 +22,6 @@
|
||||
import functools
|
||||
import types
|
||||
import traceback
|
||||
import logging
|
||||
|
||||
try:
|
||||
import hunter
|
||||
|
@ -160,7 +160,6 @@ class CriticalQtWarning(Exception):
|
||||
|
||||
def init_log(args):
|
||||
"""Init loggers based on the argparse namespace passed."""
|
||||
global console
|
||||
level = args.loglevel.upper()
|
||||
try:
|
||||
numeric_level = getattr(logging, level)
|
||||
@ -189,10 +188,6 @@ def init_log(args):
|
||||
_log_inited = True
|
||||
|
||||
|
||||
def change(filters):
|
||||
console.addFilter(LogFilter(filters.split(',')))
|
||||
|
||||
|
||||
def _init_py_warnings():
|
||||
"""Initialize Python warning handling."""
|
||||
warnings.simplefilter('default')
|
||||
|
Loading…
Reference in New Issue
Block a user