Fix lint
This commit is contained in:
parent
8d80ce2628
commit
860ef75abc
@ -37,8 +37,7 @@ import qutebrowser.utils.webelem as webelem
|
|||||||
import qutebrowser.browser.quickmarks as quickmarks
|
import qutebrowser.browser.quickmarks as quickmarks
|
||||||
import qutebrowser.utils.log as log
|
import qutebrowser.utils.log as log
|
||||||
import qutebrowser.utils.url as urlutils
|
import qutebrowser.utils.url as urlutils
|
||||||
from qutebrowser.utils.qt import (check_overflow, check_print_compat,
|
from qutebrowser.utils.qt import check_overflow, check_print_compat
|
||||||
qt_ensure_valid)
|
|
||||||
from qutebrowser.utils.editor import ExternalEditor
|
from qutebrowser.utils.editor import ExternalEditor
|
||||||
from qutebrowser.commands.exceptions import CommandError
|
from qutebrowser.commands.exceptions import CommandError
|
||||||
from qutebrowser.commands.userscripts import UserscriptRunner
|
from qutebrowser.commands.userscripts import UserscriptRunner
|
||||||
|
@ -24,7 +24,6 @@ import sys
|
|||||||
import shutil
|
import shutil
|
||||||
import unittest
|
import unittest
|
||||||
import os.path
|
import os.path
|
||||||
import subprocess
|
|
||||||
from tempfile import mkdtemp
|
from tempfile import mkdtemp
|
||||||
|
|
||||||
from PyQt5.QtCore import QStandardPaths, QCoreApplication, Qt
|
from PyQt5.QtCore import QStandardPaths, QCoreApplication, Qt
|
||||||
|
@ -28,6 +28,7 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
try:
|
try:
|
||||||
# Python2
|
# Python2
|
||||||
|
# pylint: disable=import-error
|
||||||
from Tkinter import Tk
|
from Tkinter import Tk
|
||||||
import tkMessageBox as messagebox
|
import tkMessageBox as messagebox
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
"""Other utilities which don't fit anywhere else. """
|
"""Other utilities which don't fit anywhere else. """
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import re
|
|
||||||
import sys
|
import sys
|
||||||
import shlex
|
import shlex
|
||||||
import os.path
|
import os.path
|
||||||
|
@ -54,8 +54,8 @@ def _parse_docstring(func): # noqa
|
|||||||
A (short_desc, long_desc, arg_descs) tuple.
|
A (short_desc, long_desc, arg_descs) tuple.
|
||||||
"""
|
"""
|
||||||
# pylint: disable=too-many-branches
|
# pylint: disable=too-many-branches
|
||||||
State = enum('State', 'short', 'desc', 'desc_hidden', 'arg_start',
|
State = enum('State', 'short', 'desc', # pylint: disable=invalid-name
|
||||||
'arg_inside', 'misc')
|
'desc_hidden', 'arg_start', 'arg_inside', 'misc')
|
||||||
doc = inspect.getdoc(func)
|
doc = inspect.getdoc(func)
|
||||||
lines = doc.splitlines()
|
lines = doc.splitlines()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user