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
|
||||
:py:meth:`ChannelError` to be raised in any waiting thread.
|
||||
|
||||
.. py:method:: put (data)
|
||||
.. py:method:: send (data)
|
||||
|
||||
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."""
|
||||
_vv and IOLOG.debug('%r.put(%r..)', self, data[:100])
|
||||
_vv and IOLOG.debug('%r.send(%r..)', self, data[:100])
|
||||
self.context.send(
|
||||
Message.pickled(
|
||||
data,
|
||||
|
|
|
@ -34,7 +34,7 @@ def func_accepts_returns_context(context):
|
|||
|
||||
|
||||
def func_accepts_returns_sender(sender):
|
||||
sender.put(123)
|
||||
sender.send(123)
|
||||
sender.close()
|
||||
return sender
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import testlib
|
|||
|
||||
def yield_stuff_then_die(sender):
|
||||
for x in xrange(5):
|
||||
sender.put(x)
|
||||
sender.send(x)
|
||||
sender.close()
|
||||
return 10
|
||||
|
||||
|
|
Loading…
Reference in New Issue