From 9ef956ae5e0033ebd3610915b2dd28044983f8a4 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 29 Apr 2014 08:38:01 +0200 Subject: [PATCH] Fix some checks --- .pylintrc | 3 ++- qutebrowser/__main__.py | 3 +++ qutebrowser/utils/misc.py | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.pylintrc b/.pylintrc index d1a47ae00..4165b5cd7 100644 --- a/.pylintrc +++ b/.pylintrc @@ -15,7 +15,8 @@ disable=no-self-use, too-many-ancestors, too-few-public-methods, too-many-public-methods, - cyclic-import + cyclic-import, + bad-option-value [BASIC] module-rgx=[a-z_]*$ diff --git a/qutebrowser/__main__.py b/qutebrowser/__main__.py index 4cd077500..6a668121b 100644 --- a/qutebrowser/__main__.py +++ b/qutebrowser/__main__.py @@ -22,9 +22,12 @@ from qutebrowser.app import QuteBrowser import sys + def main(): + """Main entry point for qutebrowser.""" app = QuteBrowser() return app.exec_() + if __name__ == '__main__': sys.exit(main()) diff --git a/qutebrowser/utils/misc.py b/qutebrowser/utils/misc.py index 60eb2b4c7..341a8cb1c 100644 --- a/qutebrowser/utils/misc.py +++ b/qutebrowser/utils/misc.py @@ -17,7 +17,6 @@ """Other utilities which don't fit anywhere else.""" -import os.path from functools import reduce from pkg_resources import resource_string