@@ -855,7 +855,7 @@ and :term:`generators <generator>` which incur interpreter overhead.
855855
856856 def running_mean(iterable):
857857 "Yield the average of all values seen so far."
858- # running_mean([8.5, 9.5, 7.5, 6.5]) -> 8.5 9.0 8.5 8.0
858+ # running_mean([8.5, 9.5, 7.5, 6.5]) → 8.5 9.0 8.5 8.0
859859 return map(truediv, accumulate(iterable), count(1))
860860
861861 def repeatfunc(function, times=None, *args):
@@ -934,10 +934,10 @@ and :term:`generators <generator>` which incur interpreter overhead.
934934 yield element
935935
936936 def unique(iterable, key=None, reverse=False):
937- "Yield unique elements in sorted order. Supports unhashable inputs."
938- # unique([[1, 2], [3, 4], [1, 2]]) → [1, 2] [3, 4]
939- sequenced = sorted(iterable, key=key, reverse=reverse)
940- return unique_justseen(sequenced, key=key)
937+ "Yield unique elements in sorted order. Supports unhashable inputs."
938+ # unique([[1, 2], [3, 4], [1, 2]]) → [1, 2] [3, 4]
939+ sequenced = sorted(iterable, key=key, reverse=reverse)
940+ return unique_justseen(sequenced, key=key)
941941
942942 def sliding_window(iterable, n):
943943 "Collect data into overlapping fixed-length chunks or blocks."
0 commit comments