From 4876bdf7ce04ac405a24ec1f70221e6e05201527 Mon Sep 17 00:00:00 2001 From: Nathan Isom Date: Wed, 14 Oct 2015 13:34:41 -0500 Subject: [PATCH] style. --- qutebrowser/browser/webview.py | 4 ++-- qutebrowser/mainwindow/statusbar/url.py | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/qutebrowser/browser/webview.py b/qutebrowser/browser/webview.py index 25f50d1e0..49661294f 100644 --- a/qutebrowser/browser/webview.py +++ b/qutebrowser/browser/webview.py @@ -35,8 +35,8 @@ from qutebrowser.utils import message, log, usertypes, utils, qtutils, objreg from qutebrowser.browser import webpage, hints, webelem -LoadStatus = usertypes.enum('LoadStatus', ['none', 'success', 'success_https', 'error', 'warn', - 'loading']) +LoadStatus = usertypes.enum('LoadStatus', ['none', 'success', 'success_https', + 'error', 'warn', 'loading']) tab_id_gen = itertools.count(0) diff --git a/qutebrowser/mainwindow/statusbar/url.py b/qutebrowser/mainwindow/statusbar/url.py index dde4533d9..f903a15aa 100644 --- a/qutebrowser/mainwindow/statusbar/url.py +++ b/qutebrowser/mainwindow/statusbar/url.py @@ -28,8 +28,8 @@ from qutebrowser.utils import usertypes # Note this has entries for success/error/warn from widgets.webview:LoadStatus -UrlType = usertypes.enum('UrlType', ['success', 'success_https', ' error', 'warn', 'hover', - 'normal']) +UrlType = usertypes.enum('UrlType', ['success', 'success_https', ' error', + 'warn', 'hover', 'normal']) class UrlText(textbase.TextBase): @@ -120,8 +120,10 @@ class UrlText(textbase.TextBase): status_str: The LoadStatus as string. """ status = webview.LoadStatus[status_str] - if status in (webview.LoadStatus.success, webview.LoadStatus.success_https, - webview.LoadStatus.error, webview.LoadStatus.warn): + if status in (webview.LoadStatus.success, + webview.LoadStatus.success_https, + webview.LoadStatus.error, + webview.LoadStatus.warn): self._normal_url_type = UrlType[status_str] else: self._normal_url_type = UrlType.normal