From 32bc20d8ce2b564a460cdc82ba0b9ebe8e05ed6b Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Tue, 20 Oct 2015 19:41:47 +0100 Subject: Fix pep8 across codebase * Further whitespace fixes by autopep8 * Using pep8 v1.6.2 (not currently used by pyflakes) * Update config for pep8 and flake8 in tox.ini * A separate pep8 entry for running autopep8. The ignores prevent blank lines being added after docstrings. * .tox and E133 are ignored in flake8 by default. --- deluge/ui/web/auth.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'deluge/ui/web/auth.py') diff --git a/deluge/ui/web/auth.py b/deluge/ui/web/auth.py index 94ba6decd..93cf91b8e 100644 --- a/deluge/ui/web/auth.py +++ b/deluge/ui/web/auth.py @@ -15,10 +15,9 @@ from datetime import datetime, timedelta from email.utils import formatdate from functools import reduce -from twisted.internet.task import LoopingCall - from deluge import component from deluge.common import utf8_encoded +from twisted.internet.task import LoopingCall log = logging.getLogger(__name__) @@ -39,7 +38,7 @@ class AuthError(Exception): pass # Import after as json_api imports the above AuthError and AUTH_LEVEL_DEFAULT -from deluge.ui.web.json_api import export, JSONComponent # isort:skip +from deluge.ui.web.json_api import export, JSONComponent # NOQA, isort:skip def make_checksum(session_id): -- cgit