Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…506.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5526 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a56a8dacf3b0bc54f6133a2037c2c452152c1653 1 parent 02bf47d
Malcolm Tredinnick authored June 24, 2007

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/utils/itercompat.py
2  django/utils/itercompat.py
@@ -34,7 +34,7 @@ def groupby(iterable, keyfunc=None):
34 34
         keyfunc = lambda x:x
35 35
     iterable = iter(iterable)
36 36
     l = [iterable.next()]
37  
-    lastkey = keyfunc(l)
  37
+    lastkey = keyfunc(l[0])
38 38
     for item in iterable:
39 39
         key = keyfunc(item)
40 40
         if key != lastkey:

0 notes on commit a56a8da

Please sign in to comment.
Something went wrong with that request. Please try again.