1
0
mirror of https://github.com/django/django.git synced 2025-10-28 16:16:12 +00:00

Replaced foo.next() by next(foo).

This new syntax for next() has been introduced in Python 2.6 and is
compatible with Python 3.
This commit is contained in:
Claude Paroz
2012-05-10 20:14:04 +02:00
parent 1c1a229632
commit 169b1a404c
20 changed files with 73 additions and 73 deletions

View File

@@ -281,7 +281,7 @@ class HttpResponseTests(unittest.TestCase):
my_iter = r.__iter__()
while True:
try:
result.append(my_iter.next())
result.append(next(my_iter))
except StopIteration:
break
#'\xde\x9e' == unichr(1950).encode('utf-8')