Cleanup
This commit is contained in:
parent
234d171483
commit
3d37b22fb0
@ -130,6 +130,7 @@ class FontDict(dict):
|
||||
except KeyError:
|
||||
return None
|
||||
|
||||
|
||||
class Config(ConfigParser):
|
||||
|
||||
"""Our own ConfigParser subclass."""
|
||||
|
@ -54,7 +54,9 @@ def read_file(filename):
|
||||
|
||||
|
||||
def trace_lines(do_trace):
|
||||
def trace(frame, event, arg):
|
||||
"""Turn on/off printing each executed line."""
|
||||
def trace(frame, event, _):
|
||||
"""Trace function passed to sys.settrace."""
|
||||
print("{}, {}:{}".format(event, frame.f_code.co_filename,
|
||||
frame.f_lineno))
|
||||
return trace
|
||||
|
@ -28,6 +28,7 @@ from qutebrowser.widgets.browser import TabbedBrowser
|
||||
from qutebrowser.widgets.completion import CompletionView
|
||||
import qutebrowser.utils.config as config
|
||||
|
||||
|
||||
class MainWindow(QWidget):
|
||||
|
||||
"""The main window of QuteBrowser.
|
||||
|
Loading…
Reference in New Issue
Block a user