Skip to content

Commit 22a1d79

Browse files
author
Juha Jeronen
committed
Fix a few more deprecated getvalue
1 parent b440098 commit 22a1d79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

unpythonic/seq.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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):

0 commit comments

Comments
 (0)