summaryrefslogtreecommitdiff
path: root/django/template
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2016-11-19 18:19:41 +0100
committerClaude Paroz <claude@2xlibre.net>2017-01-18 09:55:19 +0100
commitd7b9aaa366dd54ecc3142c588162e3adc7c2f7ac (patch)
treec7faf11a6f6c14981a08a621c36e6f736b21dd8b /django/template
parent397b3705c5f762b359cdb494f9447c8a60685adf (diff)
Refs #23919 -- Removed encoding preambles and future imports
Diffstat (limited to 'django/template')
-rw-r--r--django/template/backends/base.py3
-rw-r--r--django/template/backends/django.py3
-rw-r--r--django/template/backends/dummy.py3
-rw-r--r--django/template/backends/jinja2.py3
-rw-r--r--django/template/backends/utils.py3
-rw-r--r--django/template/base.py2
-rw-r--r--django/template/context_processors.py2
-rw-r--r--django/template/defaultfilters.py2
-rw-r--r--django/template/defaulttags.py2
9 files changed, 0 insertions, 23 deletions
diff --git a/django/template/backends/base.py b/django/template/backends/base.py
index 00b5fc4b2b..9f48fbfdca 100644
--- a/django/template/backends/base.py
+++ b/django/template/backends/base.py
@@ -1,6 +1,3 @@
-# Since this package contains a "django" module, this is required on Python 2.
-from __future__ import absolute_import
-
from django.core.exceptions import (
ImproperlyConfigured, SuspiciousFileOperation,
)
diff --git a/django/template/backends/django.py b/django/template/backends/django.py
index afe1a7cd23..7ae8141251 100644
--- a/django/template/backends/django.py
+++ b/django/template/backends/django.py
@@ -1,6 +1,3 @@
-# Since this package contains a "django" module, this is required on Python 2.
-from __future__ import absolute_import
-
import sys
from importlib import import_module
from pkgutil import walk_packages
diff --git a/django/template/backends/dummy.py b/django/template/backends/dummy.py
index 1d6f446dec..015cb8bda0 100644
--- a/django/template/backends/dummy.py
+++ b/django/template/backends/dummy.py
@@ -1,6 +1,3 @@
-# Since this package contains a "django" module, this is required on Python 2.
-from __future__ import absolute_import
-
import errno
import io
import string
diff --git a/django/template/backends/jinja2.py b/django/template/backends/jinja2.py
index cf08858db9..2497df1b84 100644
--- a/django/template/backends/jinja2.py
+++ b/django/template/backends/jinja2.py
@@ -1,6 +1,3 @@
-# Since this package contains a "django" module, this is required on Python 2.
-from __future__ import absolute_import
-
import sys
import jinja2
diff --git a/django/template/backends/utils.py b/django/template/backends/utils.py
index 881d83acf2..8147bb4988 100644
--- a/django/template/backends/utils.py
+++ b/django/template/backends/utils.py
@@ -1,6 +1,3 @@
-# Since this package contains a "django" module, this is required on Python 2.
-from __future__ import absolute_import
-
from django.middleware.csrf import get_token
from django.utils.functional import lazy
from django.utils.html import format_html
diff --git a/django/template/base.py b/django/template/base.py
index af3b6c5371..3aa7941879 100644
--- a/django/template/base.py
+++ b/django/template/base.py
@@ -49,8 +49,6 @@ times with multiple contexts)
'<html></html>'
"""
-from __future__ import unicode_literals
-
import inspect
import logging
import re
diff --git a/django/template/context_processors.py b/django/template/context_processors.py
index da5276ce44..85cd3eaa5f 100644
--- a/django/template/context_processors.py
+++ b/django/template/context_processors.py
@@ -7,8 +7,6 @@ These are referenced from the 'context_processors' option of the configuration
of a DjangoTemplates backend and used by RequestContext.
"""
-from __future__ import unicode_literals
-
import itertools
from django.conf import settings
diff --git a/django/template/defaultfilters.py b/django/template/defaultfilters.py
index e35415bdf7..fc249953ea 100644
--- a/django/template/defaultfilters.py
+++ b/django/template/defaultfilters.py
@@ -1,6 +1,4 @@
"""Default variable filters."""
-from __future__ import unicode_literals
-
import random as random_module
import re
from decimal import ROUND_HALF_UP, Context, Decimal, InvalidOperation
diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py
index d35e80cfa9..2c455aff7b 100644
--- a/django/template/defaulttags.py
+++ b/django/template/defaulttags.py
@@ -1,6 +1,4 @@
"""Default tags used by the template system, available to all templates."""
-from __future__ import unicode_literals
-
import re
import sys
import warnings