Skip to content

Commit

Permalink
Revert "Avoid return in generator"
Browse files Browse the repository at this point in the history
This reverts commit 902ce4e.
  • Loading branch information
nykh committed Apr 6, 2018
1 parent 902ce4e commit e052b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def uniq(iterable):
try:
prev = next(iterator)
except StopIteration:
pass
return []
yield prev
for item in iterator:
if item != prev:
Expand Down

0 comments on commit e052b80

Please sign in to comment.