Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed small bug in Python 2.3 fallback for itertools.groupby. Refs #4506

.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5526 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a56a8dacf3b0bc54f6133a2037c2c452152c1653 1 parent 02bf47d
@malcolmt malcolmt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/utils/itercompat.py
View
2  django/utils/itercompat.py
@@ -34,7 +34,7 @@ def groupby(iterable, keyfunc=None):
keyfunc = lambda x:x
iterable = iter(iterable)
l = [iterable.next()]
- lastkey = keyfunc(l)
+ lastkey = keyfunc(l[0])
for item in iterable:
key = keyfunc(item)
if key != lastkey:
Please sign in to comment.
Something went wrong with that request. Please try again.