Skip to content

Saleor Core: the high performance, composable, headless commerce API.

style

Marek Brzóska781f7d10171f
diff --git a/saleor/middleware.py b/saleor/middleware.py
index 8fb3008307..c0ad63441f 100644
--- a/saleor/middleware.py
+++ b/saleor/middleware.py
@@ -7,10 +7,10 @@ logger = logging.getLogger('saleor')
class CheckHTML(object):
- def process_response(self, request, response):
+ def process_response(self, _request, response):
if settings.DEBUG and settings.WARN_ABOUT_INVALID_HTML5_OUTPUT:
proc = Popen(["tidy"], stdout=PIPE, stderr=PIPE, stdin=PIPE)
- out, err = proc.communicate(response.content)
+ _out, err = proc.communicate(response.content)
for l in err.split('\n\n')[0].split('\n')[:-2]:
logger.warning(l)
return response
diff --git a/saleor/settings.py b/saleor/settings.py
index fff75ee449..f5d6828c13 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -86,7 +86,8 @@ LOGGING = {
'disable_existing_loggers': False,
'formatters': {
'verbose': {
- 'format': '%(levelname)s %(asctime)s %(module)s %(process)d %(thread)d %(message)s'
+ 'format': '%(levelname)s %(asctime)s %(module)s '
+ '%(process)d %(thread)d %(message)s'
},
'simple': {
'format': '%(levelname)s %(message)s'
diff --git a/saleor/urls.py b/saleor/urls.py
index 6b11f6e73a..22d020e929 100644
--- a/saleor/urls.py
+++ b/saleor/urls.py
@@ -1,4 +1,4 @@
-from django.conf.urls import patterns, include, url
+from django.conf.urls import patterns, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin