From eae81fa5600ebe6f230578657b9603b4f6ccce09 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 6 Aug 2014 14:44:00 +0200 Subject: [PATCH] Cleanup --- doc/TODO | 2 ++ qutebrowser/widgets/tabbedbrowser.py | 1 - scripts/run_checks.py | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/TODO b/doc/TODO index 0a6b3ed04..b1eafbe6d 100644 --- a/doc/TODO +++ b/doc/TODO @@ -116,6 +116,8 @@ style - Use list models for completion and a proxy model which converts them to a tree? +- Stuff under scripts/ (especially generate_doc and run_checks) could use a + rewrite. dwb keybindings to possibly implement ===================================== diff --git a/qutebrowser/widgets/tabbedbrowser.py b/qutebrowser/widgets/tabbedbrowser.py index 241e40487..1d5d51b77 100644 --- a/qutebrowser/widgets/tabbedbrowser.py +++ b/qutebrowser/widgets/tabbedbrowser.py @@ -341,7 +341,6 @@ class TabbedBrowser(TabWidget): idx = self._tab_insert_idx_right self._tab_insert_idx_right += 1 elif pos == 'first': - inserted_left = True idx = 0 elif pos == 'last': idx = -1 diff --git a/scripts/run_checks.py b/scripts/run_checks.py index bbc53ed61..2bcd489cf 100755 --- a/scripts/run_checks.py +++ b/scripts/run_checks.py @@ -87,6 +87,7 @@ def run(name, target=None, args=None): target: The package to check args: Option list of arguments to pass """ + # pylint: disable=too-many-branches if name == 'pylint': scriptdir = os.path.abspath(os.path.dirname(__file__)) if 'PYTHONPATH' in os.environ: