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