[PATCH 11/13] trivial: noqa unused imports

Stephen Finucane stephenfinucane at hotmail.com
Tue Sep 20 08:38:59 AEST 2016


Signed-off-by: Stephen Finucane <stephenfinucane at hotmail.com>
---
 patchwork/compat.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/patchwork/compat.py b/patchwork/compat.py
index c8bade6..5c8ca23 100644
--- a/patchwork/compat.py
+++ b/patchwork/compat.py
@@ -30,9 +30,10 @@ import django
 # https://docs.djangoproject.com/en/dev/releases/1.8/
 
 if django.VERSION >= (1, 8):
-    from django.template.loader import render_to_string
+    from django.template.loader import render_to_string  # noqa
 else:
-    from django.template import loader, RequestContext
+    from django.template import loader  # noqa
+    from django.template import RequestContext  # noqa
 
     def render_to_string(template_name, context=None, request=None):
         context_instance = RequestContext(request) if request else None
-- 
2.7.4



More information about the Patchwork mailing list