]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix an incorrect merge.
authorRaymond Hettinger <python@rcn.com>
Mon, 23 Mar 2009 22:43:36 +0000 (22:43 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 23 Mar 2009 22:43:36 +0000 (22:43 +0000)
Doc/library/itertools.rst

index f35601c97901428a553f119258eb444fcac4ff17..c55411149bd55bdbeb6cbdb97f89590a8b63bf31 100644 (file)
@@ -659,4 +659,4 @@ which incur interpreter overhead.
        "List unique elements, preserving order. Remember only the element just seen."
        # unique_justseen('AAAABBBCCDAABBB') --> A B C D A B
        # unique_justseen('ABBCcAD', str.lower) --> A B C A D
-       return map(next, imap(itemgetter(1), groupby(iterable, key)))
+       return map(next, map(itemgetter(1), groupby(iterable, key)))