summaryrefslogtreecommitdiff
path: root/django/template
diff options
context:
space:
mode:
authorSergey Fedoseev <fedoseev.sergey@gmail.com>2017-08-24 01:48:29 +0500
committerTim Graham <timograham@gmail.com>2017-08-23 16:48:29 -0400
commitf2b93b509c174ba5e2c82fc4e88537bad0996577 (patch)
tree6dc5e6c157bf907e6c829e5a8e53cd12b2325061 /django/template
parentdca67bb2c27cfa1b23cb6519c544ce467813e0ec (diff)
Removed unneeded iter() calls.
A few of these were unnecessarily added in 2b281cc35ed9d997614ca3c416928d7fabfef1ad.
Diffstat (limited to 'django/template')
-rw-r--r--django/template/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/base.py b/django/template/base.py
index 9ceba80dae..6572eae8ab 100644
--- a/django/template/base.py
+++ b/django/template/base.py
@@ -320,7 +320,7 @@ class Token:
def split_contents(self):
split = []
- bits = iter(smart_split(self.contents))
+ bits = smart_split(self.contents)
for bit in bits:
# Handle translation-marked template pieces
if bit.startswith(('_("', "_('")):