summaryrefslogtreecommitdiff
path: root/django/http/__init__.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2012-05-10 20:14:04 +0200
committerClaude Paroz <claude@2xlibre.net>2012-05-10 20:15:49 +0200
commit169b1a404c8118bb75840523d5fb3543de9c8889 (patch)
tree7d894e0ade3cb2fc7b8a6d33344bc3ac479a83c7 /django/http/__init__.py
parent1c1a22963236c6015724bfbf43dd56dbe40a6cf9 (diff)
Replaced foo.next() by next(foo).
This new syntax for next() has been introduced in Python 2.6 and is compatible with Python 3.
Diffstat (limited to 'django/http/__init__.py')
-rw-r--r--django/http/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/http/__init__.py b/django/http/__init__.py
index 2815f5fbd5..2bad146010 100644
--- a/django/http/__init__.py
+++ b/django/http/__init__.py
@@ -668,7 +668,7 @@ class HttpResponse(object):
return self
def next(self):
- chunk = self._iterator.next()
+ chunk = next(self._iterator)
if isinstance(chunk, unicode):
chunk = chunk.encode(self._charset)
return str(chunk)