Fix lint
This commit is contained in:
parent
b025ea9da2
commit
a24391d40d
@ -300,12 +300,14 @@ def init_log(args):
|
||||
log.init_log(args)
|
||||
log.init.debug("Log initialized.")
|
||||
|
||||
|
||||
def check_optimize_flag():
|
||||
from qutebrowser.utils import log
|
||||
if sys.flags.optimize >= 2:
|
||||
log.init.warning("Running on optimize level higher than 1, "
|
||||
"unexpected behavior may occur.")
|
||||
|
||||
|
||||
def earlyinit(args):
|
||||
"""Do all needed early initialization.
|
||||
|
||||
|
@ -371,6 +371,7 @@ class TestArgument:
|
||||
def test_no_docstring_with_optimize(self, monkeypatch):
|
||||
"""With -OO we'd get a warning on start, but no warning afterwards."""
|
||||
monkeypatch.setattr(sys, 'flags', types.SimpleNamespace(optimize=2))
|
||||
|
||||
@cmdutils.register()
|
||||
def fun():
|
||||
# no docstring
|
||||
|
Loading…
Reference in New Issue
Block a user