core: Rename Sender.put() to Sender.send().
Been annoying me for months.
This commit is contained in:
parent
b48d63f33b
commit
80a97fbc9b
|
@ -1027,7 +1027,7 @@ Sender Class
|
||||||
Send :py:data:`_DEAD` to the remote end, causing
|
Send :py:data:`_DEAD` to the remote end, causing
|
||||||
:py:meth:`ChannelError` to be raised in any waiting thread.
|
:py:meth:`ChannelError` to be raised in any waiting thread.
|
||||||
|
|
||||||
.. py:method:: put (data)
|
.. py:method:: send (data)
|
||||||
|
|
||||||
Send `data` to the remote end.
|
Send `data` to the remote end.
|
||||||
|
|
||||||
|
|
|
@ -384,9 +384,9 @@ class Sender(object):
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
def put(self, data):
|
def send(self, data):
|
||||||
"""Send `data` to the remote."""
|
"""Send `data` to the remote."""
|
||||||
_vv and IOLOG.debug('%r.put(%r..)', self, data[:100])
|
_vv and IOLOG.debug('%r.send(%r..)', self, data[:100])
|
||||||
self.context.send(
|
self.context.send(
|
||||||
Message.pickled(
|
Message.pickled(
|
||||||
data,
|
data,
|
||||||
|
|
|
@ -34,7 +34,7 @@ def func_accepts_returns_context(context):
|
||||||
|
|
||||||
|
|
||||||
def func_accepts_returns_sender(sender):
|
def func_accepts_returns_sender(sender):
|
||||||
sender.put(123)
|
sender.send(123)
|
||||||
sender.close()
|
sender.close()
|
||||||
return sender
|
return sender
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ import testlib
|
||||||
|
|
||||||
def yield_stuff_then_die(sender):
|
def yield_stuff_then_die(sender):
|
||||||
for x in xrange(5):
|
for x in xrange(5):
|
||||||
sender.put(x)
|
sender.send(x)
|
||||||
sender.close()
|
sender.close()
|
||||||
return 10
|
return 10
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue