Skip to content

Commit b129766

Browse files
committed
Releasing v2.2
1 parent 2f16935 commit b129766

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pipe.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Library allowing a sh like infix syntax using pipes."""
22

33
__author__ = "Julien Palard <julien@python.org>"
4-
__version__ = "2.1"
4+
__version__ = "2.2"
55
__credits__ = """Jérôme Schneider for teaching me the Python datamodel,
66
and all contributors."""
77

@@ -112,8 +112,7 @@ def uniq(iterable, key=lambda x: x):
112112
def permutations(iterable, r=None):
113113
# permutations('ABCD', 2) --> AB AC AD BA BC BD CA CB CD DA DB DC
114114
# permutations(range(3)) --> 012 021 102 120 201 210
115-
for x in itertools.permutations(iterable, r):
116-
yield x
115+
yield from itertools.permutations(iterable, r)
117116

118117

119118
@Pipe

0 commit comments

Comments
 (0)