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
1 changed files with 1 additions and 1 deletions

View File

@ -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