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