1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

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
This commit is contained in:
Malcolm Tredinnick 2006-09-26 10:08:03 +00:00
parent 9c0568e21e
commit e149c8bb87

View File

@ -15,7 +15,7 @@ def compat_tee(iterable):
# deliberate and safe in this instance. # deliberate and safe in this instance.
def gen(next, data={}, cnt=[0]): def gen(next, data={}, cnt=[0]):
dpop = data.pop dpop = data.pop
for i in count(): for i in itertools.count():
if i == cnt[0]: if i == cnt[0]:
item = data[i] = next() item = data[i] = next()
cnt[0] += 1 cnt[0] += 1