diff --git a/pipe.py b/pipe.py index 1d297ec..42ba7e9 100644 --- a/pipe.py +++ b/pipe.py @@ -1,7 +1,7 @@ """Library allowing a sh like infix syntax using pipes.""" __author__ = "Julien Palard " -__version__ = "2.1" +__version__ = "2.2" __credits__ = """Jérôme Schneider for teaching me the Python datamodel, and all contributors.""" @@ -112,8 +112,7 @@ def uniq(iterable, key=lambda x: x): def permutations(iterable, r=None): # permutations('ABCD', 2) --> AB AC AD BA BC BD CA CB CD DA DB DC # permutations(range(3)) --> 012 021 102 120 201 210 - for x in itertools.permutations(iterable, r): - yield x + yield from itertools.permutations(iterable, r) @Pipe