[Patchew-devel] [PATCH 1/2] Apply PEP8 to www apps and urls modules

Caio Carrara posted 2 patches 5 years, 5 months ago
[Patchew-devel] [PATCH 1/2] Apply PEP8 to www apps and urls modules
Posted by Caio Carrara 5 years, 5 months ago
The adjustments in this change were basically indentation and line
breaks.

Signed-off-by: Caio Carrara <ccarrara@redhat.com>
---
 www/apps.py |  2 --
 www/urls.py | 40 ++++++++++++++++++++--------------------
 2 files changed, 20 insertions(+), 22 deletions(-)

diff --git a/www/apps.py b/www/apps.py
index 82a38c9..ddae842 100644
--- a/www/apps.py
+++ b/www/apps.py
@@ -8,8 +8,6 @@
 # This work is licensed under the MIT License.  Please see the LICENSE file or
 # http://opensource.org/licenses/MIT.
 
-
-
 from django.apps import AppConfig
 
 
diff --git a/www/urls.py b/www/urls.py
index 21b945c..b64c1c8 100644
--- a/www/urls.py
+++ b/www/urls.py
@@ -17,23 +17,23 @@ urlpatterns = []
 dispatch_module_hook("www_url_hook", urlpatterns=urlpatterns)
 
 urlpatterns += [
-        url(
-            '^login/$',
-            auth_views.login,
-            {'template_name': 'login.html'},
-            name="login"
-        ),
-        url(
-            '^logout/$',
-            auth_views.logout,
-            name="logout"
-        ),
-        url(r"^search$", views.view_search, name="search"),
-        url(r"^search-help$", views.view_search_help, name="search_help"),
-        url(r"^(?P<project>[^/]*)/$", views.view_series_list, name="series_list"),
-        url(r"^(?P<project>[^/]*)/info$", views.view_project_detail, name="project_detail"),
-        url(r"^(?P<project>[^/]*)/(?P<message_id>[^/]*)/$", views.view_series_detail, name="series_detail"),
-        url(r"^(?P<project>[^/]*)/(?P<thread_id>[^/]*)/(?P<message_id>[^/]*)/$", views.view_series_message, name="series_message"),
-        url(r"^(?P<project>[^/]*)/(?P<message_id>[^/]*)/mbox$", views.view_mbox, name="mbox"),
-        url(r"^$", views.view_project_list, name="project_list"),
-        ]
+    url(
+        '^login/$',
+        auth_views.login,
+        {'template_name': 'login.html'},
+        name="login"
+    ),
+    url(
+        '^logout/$',
+        auth_views.logout,
+        name="logout"
+    ),
+    url(r"^search$", views.view_search, name="search"),
+    url(r"^search-help$", views.view_search_help, name="search_help"),
+    url(r"^(?P<project>[^/]*)/$", views.view_series_list, name="series_list"),
+    url(r"^(?P<project>[^/]*)/info$", views.view_project_detail, name="project_detail"),
+    url(r"^(?P<project>[^/]*)/(?P<message_id>[^/]*)/$", views.view_series_detail, name="series_detail"),
+    url(r"^(?P<project>[^/]*)/(?P<thread_id>[^/]*)/(?P<message_id>[^/]*)/$", views.view_series_message, name="series_message"),
+    url(r"^(?P<project>[^/]*)/(?P<message_id>[^/]*)/mbox$", views.view_mbox, name="mbox"),
+    url(r"^$", views.view_project_list, name="project_list"),
+]
-- 
2.19.2

_______________________________________________
Patchew-devel mailing list
Patchew-devel@redhat.com
https://www.redhat.com/mailman/listinfo/patchew-devel