@@ -850,7 +850,7 @@ and :term:`generators <generator>` which incur interpreter overhead.
850850
851851 def running_mean(iterable):
852852 "Yield the average of all values seen so far."
853- # running_mean([8.5, 9.5, 7.5, 6.5]) -> 8.5 9.0 8.5 8.0
853+ # running_mean([8.5, 9.5, 7.5, 6.5]) → 8.5 9.0 8.5 8.0
854854 return map(truediv, accumulate(iterable), count(1))
855855
856856 def repeatfunc(function, times=None, *args):
@@ -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