﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
2823	[patch] Correctly call itertools.count() in django.utils.itercompat	Alex Dedul	Adrian Holovaty	"Now it tries to call count() without importing it, patch is trivial


{{{
Index: django/utils/itercompat.py
===================================================================
--- django/utils/itercompat.py  (revision 3852)
+++ django/utils/itercompat.py  (working copy)
@@ -15,7 +15,7 @@
     # 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
}}}
"	defect	closed	Core (Other)		normal	fixed			Unreviewed	1	0	0	0	0	0
