From e149c8bb8742adb4a93c8bb39c7fd69320abaf7b Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Tue, 26 Sep 2006 10:08:03 +0000 Subject: [PATCH] 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 --- django/utils/itercompat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/utils/itercompat.py b/django/utils/itercompat.py index f259b26139..370988bedb 100644 --- a/django/utils/itercompat.py +++ b/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