summaryrefslogtreecommitdiff
path: root/django/template/loader.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/template/loader.py')
-rw-r--r--django/template/loader.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/django/template/loader.py b/django/template/loader.py
index 17b278812b..fe598bc816 100644
--- a/django/template/loader.py
+++ b/django/template/loader.py
@@ -1,5 +1,3 @@
-from django.utils import six
-
from . import engines
from .exceptions import TemplateDoesNotExist
@@ -29,7 +27,7 @@ def select_template(template_name_list, using=None):
Raises TemplateDoesNotExist if no such template exists.
"""
- if isinstance(template_name_list, six.string_types):
+ if isinstance(template_name_list, str):
raise TypeError(
'select_template() takes an iterable of template names but got a '
'string: %r. Use get_template() if you want to load a single '