Skip to content

Commit da9779f

Browse files
Fix SendChannel.send_buffer().
1 parent 873eec2 commit da9779f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/test/support/interpreters.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,12 @@ def send_nowait(self, obj):
211211
# See bpo-32604 and gh-19829.
212212
return _channels.send(self._id, obj)
213213

214-
def send_buffer(self, obj, timeout=None):
214+
def send_buffer(self, obj):
215215
"""Send the object's buffer to the channel's receiving end.
216216
217217
This blocks until the object is received.
218218
"""
219-
_channels.send_buffer(self._id, obj, timeout=timeout)
219+
_channels.send_buffer(self._id, obj)
220220

221221
def send_buffer_nowait(self, obj):
222222
"""Send the object's buffer to the channel's receiving end.
@@ -225,7 +225,6 @@ def send_buffer_nowait(self, obj):
225225
(else False). Otherwise this is the same as send().
226226
"""
227227
return _channels.send_buffer(self._id, obj)
228-
#return _channels.send_buffer(self._id, obj, blocking=False)
229228

230229
def close(self):
231230
_channels.close(self._id, send=True)

0 commit comments

Comments
 (0)