File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ def __or__(self, f):
167167
168168 Return a ``piped`` object, for chainability.
169169
170- As the only exception, if ``f`` is the sentinel ``getvalue ``,
170+ As the only exception, if ``f`` is the sentinel ``exitpipe ``,
171171 return the current value (useful for exiting the pipe).
172172
173173 A new ``piped`` object is created at each step of piping; the "update"
@@ -324,10 +324,10 @@ def __or__(self, f):
324324
325325 f = lambda x, y: (2*x, y+1)
326326 g = lambda x, y: (x+1, 2*y)
327- x = piped(2, 3) | f | g | getvalue # --> (5, 8)
327+ x = piped(2, 3) | f | g | exitpipe # --> (5, 8)
328328 """
329329 xs = self ._xs
330- if f is getvalue :
330+ if f is exitpipe :
331331 return xs if len (xs ) > 1 else xs [0 ]
332332 cls = self .__class__
333333 if isinstance (xs , tuple ):
You can’t perform that action at this time.
0 commit comments