Skip to content

Commit d5a1a04

Browse files
committed
Four space indent
1 parent e11315d commit d5a1a04

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/itertools.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -932,10 +932,10 @@ and :term:`generators <generator>` which incur interpreter overhead.
932932
yield element
933933

934934
def unique(iterable, key=None, reverse=False):
935-
"Yield unique elements in sorted order. Supports unhashable inputs."
936-
# unique([[1, 2], [3, 4], [1, 2]]) → [1, 2] [3, 4]
937-
sequenced = sorted(iterable, key=key, reverse=reverse)
938-
return unique_justseen(sequenced, key=key)
935+
"Yield unique elements in sorted order. Supports unhashable inputs."
936+
# unique([[1, 2], [3, 4], [1, 2]]) → [1, 2] [3, 4]
937+
sequenced = sorted(iterable, key=key, reverse=reverse)
938+
return unique_justseen(sequenced, key=key)
939939

940940
def sliding_window(iterable, n):
941941
"Collect data into overlapping fixed-length chunks or blocks."

0 commit comments

Comments
 (0)