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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user