From d65587128f76050d14b5cbe2581fc674fa8f0bff Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 19 Jun 2014 09:04:37 +0200 Subject: [PATCH] Add vim modelines to all files. --- .flake8 | 2 ++ .pylintrc | 2 ++ HACKING | 2 ++ pkg/PKGBUILD.qutebrowser-git | 3 +-- qutebrowser/__init__.py | 2 ++ qutebrowser/__main__.py | 2 ++ qutebrowser/app.py | 2 ++ qutebrowser/browser/__init__.py | 2 ++ qutebrowser/browser/commands.py | 2 ++ qutebrowser/browser/cookies.py | 2 ++ qutebrowser/browser/downloads.py | 2 ++ qutebrowser/browser/hints.py | 2 ++ qutebrowser/browser/quickmarks.py | 2 ++ qutebrowser/browser/signalfilter.py | 2 ++ qutebrowser/browser/webpage.py | 2 ++ qutebrowser/commands/__init__.py | 2 ++ qutebrowser/commands/command.py | 2 ++ qutebrowser/commands/exceptions.py | 2 ++ qutebrowser/commands/managers.py | 2 ++ qutebrowser/commands/userscripts.py | 2 ++ qutebrowser/commands/utils.py | 2 ++ qutebrowser/config/__init__.py | 2 ++ qutebrowser/config/config.py | 2 ++ qutebrowser/config/configdata.py | 2 ++ qutebrowser/config/conftypes.py | 2 ++ qutebrowser/config/iniparsers.py | 2 ++ qutebrowser/config/lineparser.py | 2 ++ qutebrowser/config/sections.py | 2 ++ qutebrowser/config/style.py | 2 ++ qutebrowser/config/value.py | 2 ++ qutebrowser/config/websettings.py | 2 ++ qutebrowser/html/error.html | 6 +++++- qutebrowser/keyinput/__init__.py | 2 ++ qutebrowser/keyinput/basekeyparser.py | 2 ++ qutebrowser/keyinput/keyparser.py | 2 ++ qutebrowser/keyinput/modeman.py | 2 ++ qutebrowser/keyinput/modeparsers.py | 2 ++ qutebrowser/models/__init__.py | 2 ++ qutebrowser/models/basecompletion.py | 2 ++ qutebrowser/models/cmdhistory.py | 2 ++ qutebrowser/models/completion.py | 2 ++ qutebrowser/models/completionfilter.py | 2 ++ qutebrowser/models/downloadmodel.py | 2 ++ qutebrowser/network/__init__.py | 2 ++ qutebrowser/network/networkmanager.py | 2 ++ qutebrowser/network/proxy.py | 2 ++ qutebrowser/network/qutescheme.py | 2 ++ qutebrowser/network/schemehandler.py | 2 ++ qutebrowser/test/__init__.py | 2 ++ qutebrowser/test/helpers.py | 2 ++ .../test/keyinput/test_basekeyparser.py | 2 ++ qutebrowser/test/test_helpers.py | 2 ++ qutebrowser/test/utils/__init__.py | 2 ++ qutebrowser/test/utils/test_editor.py | 2 ++ qutebrowser/test/utils/test_log.py | 2 ++ qutebrowser/test/utils/test_misc.py | 2 ++ qutebrowser/test/utils/test_readline.py | 2 ++ qutebrowser/test/utils/test_signal.py | 8 +++----- qutebrowser/test/utils/test_url.py | 2 ++ qutebrowser/test/utils/test_webelem.py | 2 ++ qutebrowser/test/utils/usertypes/__init__.py | 2 ++ qutebrowser/test/utils/usertypes/test_enum.py | 2 ++ .../test/utils/usertypes/test_neighborlist.py | 2 ++ qutebrowser/utils/__init__.py | 2 ++ qutebrowser/utils/checkpyver.py | 2 ++ qutebrowser/utils/completer.py | 2 ++ qutebrowser/utils/debug.py | 2 ++ qutebrowser/utils/earlyinit.py | 2 ++ qutebrowser/utils/editor.py | 2 ++ qutebrowser/utils/log.py | 2 ++ qutebrowser/utils/message.py | 2 ++ qutebrowser/utils/misc.py | 2 ++ qutebrowser/utils/readline.py | 2 ++ qutebrowser/utils/signals.py | 2 ++ qutebrowser/utils/style.py | 2 ++ qutebrowser/utils/url.py | 2 ++ qutebrowser/utils/usertypes.py | 2 ++ qutebrowser/utils/version.py | 2 ++ qutebrowser/utils/webelem.py | 2 ++ qutebrowser/widgets/__init__.py | 2 ++ qutebrowser/widgets/completion.py | 2 ++ qutebrowser/widgets/completiondelegate.py | 2 ++ qutebrowser/widgets/crash.py | 2 ++ qutebrowser/widgets/downloads.py | 2 ++ qutebrowser/widgets/mainwindow.py | 2 ++ qutebrowser/widgets/misc.py | 2 ++ qutebrowser/widgets/statusbar/__init__.py | 2 ++ qutebrowser/widgets/statusbar/bar.py | 2 ++ qutebrowser/widgets/statusbar/command.py | 2 ++ qutebrowser/widgets/statusbar/keystring.py | 2 ++ qutebrowser/widgets/statusbar/percentage.py | 2 ++ qutebrowser/widgets/statusbar/progress.py | 2 ++ qutebrowser/widgets/statusbar/prompt.py | 2 ++ qutebrowser/widgets/statusbar/text.py | 2 ++ qutebrowser/widgets/statusbar/textbase.py | 2 ++ qutebrowser/widgets/statusbar/url.py | 2 ++ qutebrowser/widgets/tabbedbrowser.py | 2 ++ qutebrowser/widgets/tabwidget.py | 2 ++ qutebrowser/widgets/webview.py | 2 ++ scripts/__init__.py | 2 ++ scripts/cleanup.py | 2 ++ scripts/freeze.py | 2 ++ scripts/generate_authors.py | 2 ++ scripts/minimal_webkit_testbrowser.py | 2 ++ scripts/run_checks.py | 20 +++++++++++++------ scripts/run_profile.py | 2 ++ scripts/update_3rdparty.py | 2 ++ setup.py | 3 +++ 108 files changed, 232 insertions(+), 14 deletions(-) diff --git a/.flake8 b/.flake8 index 9807ac951..f521bcc41 100644 --- a/.flake8 +++ b/.flake8 @@ -1,3 +1,5 @@ +# vim: ft=dosini fileencoding=utf-8: + [flake8] # E241: Multiple spaces after , # E265: Block comment should start with '#' diff --git a/.pylintrc b/.pylintrc index 90611baa9..5e9ad497b 100644 --- a/.pylintrc +++ b/.pylintrc @@ -1,3 +1,5 @@ +# vim: ft=dosini fileencoding=utf-8: + [MASTER] ignore=ez_setup.py diff --git a/HACKING b/HACKING index 554d68b73..6662199da 100644 --- a/HACKING +++ b/HACKING @@ -123,6 +123,8 @@ Emit: ---- + * The layout of a module should be roughly like this: + - Shebang (`#!/usr/bin/python`, if needed) + - vim-modeline (`# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et`) - Copyright - GPL boilerplate - Module docstring diff --git a/pkg/PKGBUILD.qutebrowser-git b/pkg/PKGBUILD.qutebrowser-git index 84a513a1b..73d03efbf 100644 --- a/pkg/PKGBUILD.qutebrowser-git +++ b/pkg/PKGBUILD.qutebrowser-git @@ -1,4 +1,5 @@ # Maintainer: Florian Bruhin (The Compiler) +# vim: set ts=2 sw=2 et: pkgname=qutebrowser-git pkgver= @@ -25,5 +26,3 @@ package() { cd "$srcdir/qutebrowser" python setup.py install --root="$pkgdir/" --optimize=1 } - -# vim:set ts=2 sw=2 et: diff --git a/qutebrowser/__init__.py b/qutebrowser/__init__.py index cd1f319bb..b1ed9967a 100644 --- a/qutebrowser/__init__.py +++ b/qutebrowser/__init__.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/__main__.py b/qutebrowser/__main__.py index af4dd8dd6..2dd2edbfb 100644 --- a/qutebrowser/__main__.py +++ b/qutebrowser/__main__.py @@ -1,5 +1,7 @@ #!/usr/bin/python +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/app.py b/qutebrowser/app.py index 0856ff982..c6ba54e9e 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/browser/__init__.py b/qutebrowser/browser/__init__.py index fbe90644a..9ee0def6b 100644 --- a/qutebrowser/browser/__init__.py +++ b/qutebrowser/browser/__init__.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/browser/commands.py b/qutebrowser/browser/commands.py index dbe1b5bdd..6e62582be 100644 --- a/qutebrowser/browser/commands.py +++ b/qutebrowser/browser/commands.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/browser/cookies.py b/qutebrowser/browser/cookies.py index b00530bd8..b7da8d949 100644 --- a/qutebrowser/browser/cookies.py +++ b/qutebrowser/browser/cookies.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/browser/downloads.py b/qutebrowser/browser/downloads.py index 2dbdbcbbc..eaba8f1d7 100644 --- a/qutebrowser/browser/downloads.py +++ b/qutebrowser/browser/downloads.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index e1a3a21b2..64442b0b3 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/browser/quickmarks.py b/qutebrowser/browser/quickmarks.py index ef81726a1..2368ba1bb 100644 --- a/qutebrowser/browser/quickmarks.py +++ b/qutebrowser/browser/quickmarks.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/browser/signalfilter.py b/qutebrowser/browser/signalfilter.py index 6b7c0c4d8..2f0275dc8 100644 --- a/qutebrowser/browser/signalfilter.py +++ b/qutebrowser/browser/signalfilter.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/browser/webpage.py b/qutebrowser/browser/webpage.py index da892fedf..17c2f611c 100644 --- a/qutebrowser/browser/webpage.py +++ b/qutebrowser/browser/webpage.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/commands/__init__.py b/qutebrowser/commands/__init__.py index 65212de48..6379ced59 100644 --- a/qutebrowser/commands/__init__.py +++ b/qutebrowser/commands/__init__.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/commands/command.py b/qutebrowser/commands/command.py index 9f18bba03..6310b95a6 100644 --- a/qutebrowser/commands/command.py +++ b/qutebrowser/commands/command.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/commands/exceptions.py b/qutebrowser/commands/exceptions.py index 930dcf9dd..c5dd7f214 100644 --- a/qutebrowser/commands/exceptions.py +++ b/qutebrowser/commands/exceptions.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/commands/managers.py b/qutebrowser/commands/managers.py index c45e5d85a..702ab7a64 100644 --- a/qutebrowser/commands/managers.py +++ b/qutebrowser/commands/managers.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/commands/userscripts.py b/qutebrowser/commands/userscripts.py index 91a83b10e..a001edfb6 100644 --- a/qutebrowser/commands/userscripts.py +++ b/qutebrowser/commands/userscripts.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/commands/utils.py b/qutebrowser/commands/utils.py index 25df52e99..dcbe473ca 100644 --- a/qutebrowser/commands/utils.py +++ b/qutebrowser/commands/utils.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/config/__init__.py b/qutebrowser/config/__init__.py index ae037430a..354722488 100644 --- a/qutebrowser/config/__init__.py +++ b/qutebrowser/config/__init__.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/config/config.py b/qutebrowser/config/config.py index 6afeef275..95e1ce1fe 100644 --- a/qutebrowser/config/config.py +++ b/qutebrowser/config/config.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/config/configdata.py b/qutebrowser/config/configdata.py index 7554a4178..1dbaed099 100644 --- a/qutebrowser/config/configdata.py +++ b/qutebrowser/config/configdata.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/config/conftypes.py b/qutebrowser/config/conftypes.py index 2d2766c65..b93f0c723 100644 --- a/qutebrowser/config/conftypes.py +++ b/qutebrowser/config/conftypes.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/config/iniparsers.py b/qutebrowser/config/iniparsers.py index 2d7d8390e..3386a6360 100644 --- a/qutebrowser/config/iniparsers.py +++ b/qutebrowser/config/iniparsers.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/config/lineparser.py b/qutebrowser/config/lineparser.py index ef25d88ef..d37d98aee 100644 --- a/qutebrowser/config/lineparser.py +++ b/qutebrowser/config/lineparser.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/config/sections.py b/qutebrowser/config/sections.py index 8bbe3e61f..7cacde139 100644 --- a/qutebrowser/config/sections.py +++ b/qutebrowser/config/sections.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/config/style.py b/qutebrowser/config/style.py index e37dd4c8e..e3a19e2f8 100644 --- a/qutebrowser/config/style.py +++ b/qutebrowser/config/style.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/config/value.py b/qutebrowser/config/value.py index b0a50cf4e..98453cccb 100644 --- a/qutebrowser/config/value.py +++ b/qutebrowser/config/value.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/config/websettings.py b/qutebrowser/config/websettings.py index c64f0884b..58cbb1e5b 100644 --- a/qutebrowser/config/websettings.py +++ b/qutebrowser/config/websettings.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/html/error.html b/qutebrowser/html/error.html index 6374a5626..3c6b7bf1b 100644 --- a/qutebrowser/html/error.html +++ b/qutebrowser/html/error.html @@ -1,5 +1,9 @@ - + + diff --git a/qutebrowser/keyinput/__init__.py b/qutebrowser/keyinput/__init__.py index 307ed0a30..652c22ab9 100644 --- a/qutebrowser/keyinput/__init__.py +++ b/qutebrowser/keyinput/__init__.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/keyinput/basekeyparser.py b/qutebrowser/keyinput/basekeyparser.py index 93b9bde2d..8b2b80b4b 100644 --- a/qutebrowser/keyinput/basekeyparser.py +++ b/qutebrowser/keyinput/basekeyparser.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/keyinput/keyparser.py b/qutebrowser/keyinput/keyparser.py index 11e0353b9..63c4f2f01 100644 --- a/qutebrowser/keyinput/keyparser.py +++ b/qutebrowser/keyinput/keyparser.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/keyinput/modeman.py b/qutebrowser/keyinput/modeman.py index e14683882..4ddde2e00 100644 --- a/qutebrowser/keyinput/modeman.py +++ b/qutebrowser/keyinput/modeman.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/keyinput/modeparsers.py b/qutebrowser/keyinput/modeparsers.py index eacc62f0c..67dbd41e5 100644 --- a/qutebrowser/keyinput/modeparsers.py +++ b/qutebrowser/keyinput/modeparsers.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/models/__init__.py b/qutebrowser/models/__init__.py index 41e3ddde0..095eab98f 100644 --- a/qutebrowser/models/__init__.py +++ b/qutebrowser/models/__init__.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/models/basecompletion.py b/qutebrowser/models/basecompletion.py index e73806ab7..48a387b52 100644 --- a/qutebrowser/models/basecompletion.py +++ b/qutebrowser/models/basecompletion.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/models/cmdhistory.py b/qutebrowser/models/cmdhistory.py index 5e363ccc6..3bf484cdf 100644 --- a/qutebrowser/models/cmdhistory.py +++ b/qutebrowser/models/cmdhistory.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/models/completion.py b/qutebrowser/models/completion.py index 8e16bcae6..282b1a60c 100644 --- a/qutebrowser/models/completion.py +++ b/qutebrowser/models/completion.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/models/completionfilter.py b/qutebrowser/models/completionfilter.py index f3011365a..b8b50498b 100644 --- a/qutebrowser/models/completionfilter.py +++ b/qutebrowser/models/completionfilter.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/models/downloadmodel.py b/qutebrowser/models/downloadmodel.py index 1542775b8..4c704c2ec 100644 --- a/qutebrowser/models/downloadmodel.py +++ b/qutebrowser/models/downloadmodel.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/network/__init__.py b/qutebrowser/network/__init__.py index 92c677c29..c3d713ac2 100644 --- a/qutebrowser/network/__init__.py +++ b/qutebrowser/network/__init__.py @@ -1 +1,3 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + """Modules related to network operations.""" diff --git a/qutebrowser/network/networkmanager.py b/qutebrowser/network/networkmanager.py index 737e3a31e..8f73c5896 100644 --- a/qutebrowser/network/networkmanager.py +++ b/qutebrowser/network/networkmanager.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/network/proxy.py b/qutebrowser/network/proxy.py index 1199b77c1..6fc586fb5 100644 --- a/qutebrowser/network/proxy.py +++ b/qutebrowser/network/proxy.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/network/qutescheme.py b/qutebrowser/network/qutescheme.py index c703efafd..1895b9b90 100644 --- a/qutebrowser/network/qutescheme.py +++ b/qutebrowser/network/qutescheme.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/network/schemehandler.py b/qutebrowser/network/schemehandler.py index 9a5c25a1d..a22a81c9e 100644 --- a/qutebrowser/network/schemehandler.py +++ b/qutebrowser/network/schemehandler.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # Based on the Eric5 helpviewer, diff --git a/qutebrowser/test/__init__.py b/qutebrowser/test/__init__.py index 7380de10e..5fb02b295 100644 --- a/qutebrowser/test/__init__.py +++ b/qutebrowser/test/__init__.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/test/helpers.py b/qutebrowser/test/helpers.py index ecb79cbf0..9b4820157 100644 --- a/qutebrowser/test/helpers.py +++ b/qutebrowser/test/helpers.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/test/keyinput/test_basekeyparser.py b/qutebrowser/test/keyinput/test_basekeyparser.py index a8ce9b33e..f01e2555b 100644 --- a/qutebrowser/test/keyinput/test_basekeyparser.py +++ b/qutebrowser/test/keyinput/test_basekeyparser.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) : # # This file is part of qutebrowser. diff --git a/qutebrowser/test/test_helpers.py b/qutebrowser/test/test_helpers.py index c72142b6c..d764d0481 100644 --- a/qutebrowser/test/test_helpers.py +++ b/qutebrowser/test/test_helpers.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/test/utils/__init__.py b/qutebrowser/test/utils/__init__.py index 9433c839a..54f62f4aa 100644 --- a/qutebrowser/test/utils/__init__.py +++ b/qutebrowser/test/utils/__init__.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/test/utils/test_editor.py b/qutebrowser/test/utils/test_editor.py index 8c0c9ad23..70ec02d85 100644 --- a/qutebrowser/test/utils/test_editor.py +++ b/qutebrowser/test/utils/test_editor.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/test/utils/test_log.py b/qutebrowser/test/utils/test_log.py index 834eff13c..251042ee0 100644 --- a/qutebrowser/test/utils/test_log.py +++ b/qutebrowser/test/utils/test_log.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/test/utils/test_misc.py b/qutebrowser/test/utils/test_misc.py index eda857162..fbf44e146 100644 --- a/qutebrowser/test/utils/test_misc.py +++ b/qutebrowser/test/utils/test_misc.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/test/utils/test_readline.py b/qutebrowser/test/utils/test_readline.py index 3486f3fd1..d13287ab6 100644 --- a/qutebrowser/test/utils/test_readline.py +++ b/qutebrowser/test/utils/test_readline.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/test/utils/test_signal.py b/qutebrowser/test/utils/test_signal.py index 1a84e2361..3c59260ac 100644 --- a/qutebrowser/test/utils/test_signal.py +++ b/qutebrowser/test/utils/test_signal.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. @@ -35,11 +37,7 @@ class FakeSignal: class TestDebug(TestCase): - """Test signal debug output functions. - - Attributes: - signal: The FakeSignal to be tested. - """ + """Test signal debug output functions.""" def setUp(self): self.signal = FakeSignal() diff --git a/qutebrowser/test/utils/test_url.py b/qutebrowser/test/utils/test_url.py index 4cf2f6c2d..df73de81f 100644 --- a/qutebrowser/test/utils/test_url.py +++ b/qutebrowser/test/utils/test_url.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/test/utils/test_webelem.py b/qutebrowser/test/utils/test_webelem.py index f86066bc9..73b0aa28d 100644 --- a/qutebrowser/test/utils/test_webelem.py +++ b/qutebrowser/test/utils/test_webelem.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/test/utils/usertypes/__init__.py b/qutebrowser/test/utils/usertypes/__init__.py index 78b92ddae..d19e2eeb3 100644 --- a/qutebrowser/test/utils/usertypes/__init__.py +++ b/qutebrowser/test/utils/usertypes/__init__.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/test/utils/usertypes/test_enum.py b/qutebrowser/test/utils/usertypes/test_enum.py index 90cacda8c..1ef472e80 100644 --- a/qutebrowser/test/utils/usertypes/test_enum.py +++ b/qutebrowser/test/utils/usertypes/test_enum.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/test/utils/usertypes/test_neighborlist.py b/qutebrowser/test/utils/usertypes/test_neighborlist.py index b5a64464f..bcc2ac165 100644 --- a/qutebrowser/test/utils/usertypes/test_neighborlist.py +++ b/qutebrowser/test/utils/usertypes/test_neighborlist.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/utils/__init__.py b/qutebrowser/utils/__init__.py index 644ebdda1..da043302c 100644 --- a/qutebrowser/utils/__init__.py +++ b/qutebrowser/utils/__init__.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/utils/checkpyver.py b/qutebrowser/utils/checkpyver.py index 7d4429d23..df70d6de8 100644 --- a/qutebrowser/utils/checkpyver.py +++ b/qutebrowser/utils/checkpyver.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # This file is part of qutebrowser. # # qutebrowser is free software: you can redistribute it and/or modify diff --git a/qutebrowser/utils/completer.py b/qutebrowser/utils/completer.py index c93df4277..11d26eea4 100644 --- a/qutebrowser/utils/completer.py +++ b/qutebrowser/utils/completer.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/utils/debug.py b/qutebrowser/utils/debug.py index df675da5e..2f952c460 100644 --- a/qutebrowser/utils/debug.py +++ b/qutebrowser/utils/debug.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/utils/earlyinit.py b/qutebrowser/utils/earlyinit.py index 8e3944dcc..7ae16dcfa 100644 --- a/qutebrowser/utils/earlyinit.py +++ b/qutebrowser/utils/earlyinit.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # This file is part of qutebrowser. # # qutebrowser is free software: you can redistribute it and/or modify diff --git a/qutebrowser/utils/editor.py b/qutebrowser/utils/editor.py index 7485faf8d..dfc49e213 100644 --- a/qutebrowser/utils/editor.py +++ b/qutebrowser/utils/editor.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/utils/log.py b/qutebrowser/utils/log.py index ff1f03093..57d920b27 100644 --- a/qutebrowser/utils/log.py +++ b/qutebrowser/utils/log.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/utils/message.py b/qutebrowser/utils/message.py index 174732996..bd9b78bdc 100644 --- a/qutebrowser/utils/message.py +++ b/qutebrowser/utils/message.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/utils/misc.py b/qutebrowser/utils/misc.py index b98ccfcaa..4e8173326 100644 --- a/qutebrowser/utils/misc.py +++ b/qutebrowser/utils/misc.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/utils/readline.py b/qutebrowser/utils/readline.py index 8d43b5cc3..929659528 100644 --- a/qutebrowser/utils/readline.py +++ b/qutebrowser/utils/readline.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/utils/signals.py b/qutebrowser/utils/signals.py index 6a45aadad..d30e09f08 100644 --- a/qutebrowser/utils/signals.py +++ b/qutebrowser/utils/signals.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/utils/style.py b/qutebrowser/utils/style.py index f4f2bfbb6..92d5006a9 100644 --- a/qutebrowser/utils/style.py +++ b/qutebrowser/utils/style.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/utils/url.py b/qutebrowser/utils/url.py index 1b2a553d3..d6bb03cbb 100644 --- a/qutebrowser/utils/url.py +++ b/qutebrowser/utils/url.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/utils/usertypes.py b/qutebrowser/utils/usertypes.py index 93ff46846..8570d7adf 100644 --- a/qutebrowser/utils/usertypes.py +++ b/qutebrowser/utils/usertypes.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/utils/version.py b/qutebrowser/utils/version.py index 09dc62528..3e0ede15b 100644 --- a/qutebrowser/utils/version.py +++ b/qutebrowser/utils/version.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/utils/webelem.py b/qutebrowser/utils/webelem.py index 3830b3263..7c475d7f1 100644 --- a/qutebrowser/utils/webelem.py +++ b/qutebrowser/utils/webelem.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/widgets/__init__.py b/qutebrowser/widgets/__init__.py index d89e0c70f..33e754bc7 100644 --- a/qutebrowser/widgets/__init__.py +++ b/qutebrowser/widgets/__init__.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/widgets/completion.py b/qutebrowser/widgets/completion.py index 8250076fa..224c9ef65 100644 --- a/qutebrowser/widgets/completion.py +++ b/qutebrowser/widgets/completion.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/widgets/completiondelegate.py b/qutebrowser/widgets/completiondelegate.py index 833fb87d5..2acaca8dd 100644 --- a/qutebrowser/widgets/completiondelegate.py +++ b/qutebrowser/widgets/completiondelegate.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/widgets/crash.py b/qutebrowser/widgets/crash.py index 38053dfce..a28568702 100644 --- a/qutebrowser/widgets/crash.py +++ b/qutebrowser/widgets/crash.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/widgets/downloads.py b/qutebrowser/widgets/downloads.py index 4f278a4a9..314863851 100644 --- a/qutebrowser/widgets/downloads.py +++ b/qutebrowser/widgets/downloads.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/widgets/mainwindow.py b/qutebrowser/widgets/mainwindow.py index f2d87bb98..a8f0c1b3e 100644 --- a/qutebrowser/widgets/mainwindow.py +++ b/qutebrowser/widgets/mainwindow.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/widgets/misc.py b/qutebrowser/widgets/misc.py index 240574f98..2297a5227 100644 --- a/qutebrowser/widgets/misc.py +++ b/qutebrowser/widgets/misc.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/widgets/statusbar/__init__.py b/qutebrowser/widgets/statusbar/__init__.py index d89e0c70f..33e754bc7 100644 --- a/qutebrowser/widgets/statusbar/__init__.py +++ b/qutebrowser/widgets/statusbar/__init__.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/widgets/statusbar/bar.py b/qutebrowser/widgets/statusbar/bar.py index cf7f4e23c..d0d755fb9 100644 --- a/qutebrowser/widgets/statusbar/bar.py +++ b/qutebrowser/widgets/statusbar/bar.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/widgets/statusbar/command.py b/qutebrowser/widgets/statusbar/command.py index 3b6837946..71890462b 100644 --- a/qutebrowser/widgets/statusbar/command.py +++ b/qutebrowser/widgets/statusbar/command.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/widgets/statusbar/keystring.py b/qutebrowser/widgets/statusbar/keystring.py index 1452552ad..e674cac05 100644 --- a/qutebrowser/widgets/statusbar/keystring.py +++ b/qutebrowser/widgets/statusbar/keystring.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/widgets/statusbar/percentage.py b/qutebrowser/widgets/statusbar/percentage.py index 3f056870e..9ddb621b5 100644 --- a/qutebrowser/widgets/statusbar/percentage.py +++ b/qutebrowser/widgets/statusbar/percentage.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/widgets/statusbar/progress.py b/qutebrowser/widgets/statusbar/progress.py index 73e78822d..7a8e8abac 100644 --- a/qutebrowser/widgets/statusbar/progress.py +++ b/qutebrowser/widgets/statusbar/progress.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/widgets/statusbar/prompt.py b/qutebrowser/widgets/statusbar/prompt.py index 585afa322..74b55ee39 100644 --- a/qutebrowser/widgets/statusbar/prompt.py +++ b/qutebrowser/widgets/statusbar/prompt.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/widgets/statusbar/text.py b/qutebrowser/widgets/statusbar/text.py index 605e1ad9f..53465104a 100644 --- a/qutebrowser/widgets/statusbar/text.py +++ b/qutebrowser/widgets/statusbar/text.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/widgets/statusbar/textbase.py b/qutebrowser/widgets/statusbar/textbase.py index c3accb888..b113a3534 100644 --- a/qutebrowser/widgets/statusbar/textbase.py +++ b/qutebrowser/widgets/statusbar/textbase.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/widgets/statusbar/url.py b/qutebrowser/widgets/statusbar/url.py index 9acf963c4..99f45ab1f 100644 --- a/qutebrowser/widgets/statusbar/url.py +++ b/qutebrowser/widgets/statusbar/url.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/widgets/tabbedbrowser.py b/qutebrowser/widgets/tabbedbrowser.py index eed94ff17..d8801ad96 100644 --- a/qutebrowser/widgets/tabbedbrowser.py +++ b/qutebrowser/widgets/tabbedbrowser.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/widgets/tabwidget.py b/qutebrowser/widgets/tabwidget.py index e4a4c6164..9860e5056 100644 --- a/qutebrowser/widgets/tabwidget.py +++ b/qutebrowser/widgets/tabwidget.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/qutebrowser/widgets/webview.py b/qutebrowser/widgets/webview.py index decce1b84..22097f451 100644 --- a/qutebrowser/widgets/webview.py +++ b/qutebrowser/widgets/webview.py @@ -1,3 +1,5 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/scripts/__init__.py b/scripts/__init__.py index 80ff4250f..ea73ef5bd 100644 --- a/scripts/__init__.py +++ b/scripts/__init__.py @@ -1 +1,3 @@ +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + """Various scripts used to develop/install qutebrowser.""" diff --git a/scripts/cleanup.py b/scripts/cleanup.py index 4d9498934..fd4dd2c42 100644 --- a/scripts/cleanup.py +++ b/scripts/cleanup.py @@ -1,5 +1,7 @@ #!/usr/bin/python +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/scripts/freeze.py b/scripts/freeze.py index 66a939b0e..fb44b5b79 100644 --- a/scripts/freeze.py +++ b/scripts/freeze.py @@ -1,5 +1,7 @@ #!/usr/bin/python +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/scripts/generate_authors.py b/scripts/generate_authors.py index d5dedcca6..cd3ac4ac4 100644 --- a/scripts/generate_authors.py +++ b/scripts/generate_authors.py @@ -1,5 +1,7 @@ #!/usr/bin/python +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/scripts/minimal_webkit_testbrowser.py b/scripts/minimal_webkit_testbrowser.py index 740cd96f0..4574816d8 100644 --- a/scripts/minimal_webkit_testbrowser.py +++ b/scripts/minimal_webkit_testbrowser.py @@ -1,5 +1,7 @@ #!/usr/bin/python +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/scripts/run_checks.py b/scripts/run_checks.py index 5f1a4ff73..b11a83e6a 100755 --- a/scripts/run_checks.py +++ b/scripts/run_checks.py @@ -1,5 +1,7 @@ #!/usr/bin/python +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. @@ -177,26 +179,32 @@ def check_line(target): def _check_file(fn): """Check a single file for CRLFs, conflict markers and weird whitespace.""" + has_modeline = False + ok = True with open(fn, 'rb') as f: for line in f: if b'\r\n' in line: print("Found CRLF in {}".format(fn)) - return False + ok = False elif any(line.decode('UTF-8').startswith(c * 7) for c in "<>=|"): print("Found conflict marker in {}".format(fn)) - return False + ok = False elif any([line.decode('UTF-8').rstrip('\r\n').endswith(c) for c in " \t"]): print("Found whitespace at line ending in {}".format(fn)) - return False + ok = False elif b' \t' in line or b'\t ' in line: print("Found tab-space mix in {}".format(fn)) - return False + ok = False elif b'set_trace()' in line and not ( fn.endswith('debug.py') or fn.endswith('run_checks.py')): print("Found set_trace in {}".format(fn)) - return False - return True + ok = False + elif line.startswith(b'# vim:'): + has_modeline = True + if not has_modeline: + ok = False + return ok def _get_args(checker): diff --git a/scripts/run_profile.py b/scripts/run_profile.py index c2548a424..d20712adc 100755 --- a/scripts/run_profile.py +++ b/scripts/run_profile.py @@ -1,5 +1,7 @@ #!/usr/bin/python +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/scripts/update_3rdparty.py b/scripts/update_3rdparty.py index 157f05ec9..a2eb45d4f 100644 --- a/scripts/update_3rdparty.py +++ b/scripts/update_3rdparty.py @@ -1,5 +1,7 @@ #!/usr/bin/python +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser. diff --git a/setup.py b/setup.py index 1454d5ffc..c40f248b0 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,7 @@ #!/usr/bin/python + +# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: + # Copyright 2014 Florian Bruhin (The Compiler) # # This file is part of qutebrowser.