Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #2823 -- Fixed Python 2.3 compatibility problem pointed out by …

…Alex Dedul.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3853 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e149c8bb8742adb4a93c8bb39c7fd69320abaf7b 1 parent 9c0568e
@malcolmt malcolmt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/utils/itercompat.py
View
2  django/utils/itercompat.py
@@ -15,7 +15,7 @@ def compat_tee(iterable):
# deliberate and safe in this instance.
def gen(next, data={}, cnt=[0]):
dpop = data.pop
- for i in count():
+ for i in itertools.count():
if i == cnt[0]:
item = data[i] = next()
cnt[0] += 1
Please sign in to comment.
Something went wrong with that request. Please try again.