From c20c770eb076a90abfbf475ac1ea7989d7881a8d Mon Sep 17 00:00:00 2001
From: Stu Young <estute@users.noreply.github.com>
Date: Wed, 15 May 2019 16:58:04 -0400
Subject: [PATCH] incr-297 (#20604)

* run python modernize

* run isort
---
 lms/djangoapps/static_template_view/tests/test_views.py | 4 +++-
 lms/djangoapps/static_template_view/urls.py             | 2 ++
 lms/djangoapps/static_template_view/views.py            | 4 +++-
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/lms/djangoapps/static_template_view/tests/test_views.py b/lms/djangoapps/static_template_view/tests/test_views.py
index c8f04c0a8d5..dacb40e4dde 100644
--- a/lms/djangoapps/static_template_view/tests/test_views.py
+++ b/lms/djangoapps/static_template_view/tests/test_views.py
@@ -1,9 +1,11 @@
 """
 Tests for static templates
 """
+from __future__ import absolute_import
+
 from django.conf import settings
-from django.urls import reverse
 from django.test import TestCase
+from django.urls import reverse
 
 from openedx.core.djangoapps.site_configuration.tests.test_util import with_site_configuration_context
 
diff --git a/lms/djangoapps/static_template_view/urls.py b/lms/djangoapps/static_template_view/urls.py
index 0371b97a561..1ed255832ae 100644
--- a/lms/djangoapps/static_template_view/urls.py
+++ b/lms/djangoapps/static_template_view/urls.py
@@ -2,6 +2,8 @@
 URLs for static_template_view app
 """
 
+from __future__ import absolute_import
+
 from django.conf import settings
 from django.conf.urls import url
 
diff --git a/lms/djangoapps/static_template_view/views.py b/lms/djangoapps/static_template_view/views.py
index 0aa3b8831bf..0c0d4e46c80 100644
--- a/lms/djangoapps/static_template_view/views.py
+++ b/lms/djangoapps/static_template_view/views.py
@@ -3,6 +3,8 @@
 # List of valid templates is explicitly managed for (short-term)
 # security reasons.
 
+from __future__ import absolute_import
+
 import mimetypes
 
 from django.conf import settings
@@ -11,8 +13,8 @@ from django.shortcuts import redirect
 from django.template import TemplateDoesNotExist
 from django.utils.safestring import mark_safe
 from django.views.decorators.csrf import ensure_csrf_cookie
-
 from mako.exceptions import TopLevelLookupException
+
 from edxmako.shortcuts import render_to_response, render_to_string
 from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers
 from util.cache import cache_if_anonymous
-- 
GitLab