You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2014/09/30 19:48:00 UTC
svn commit: r1628498 - in /qpid/proton/branches/examples/tutorial:
helloworld_blocking.py helloworld_simplistic.py
Author: gsim
Date: Tue Sep 30 17:47:59 2014
New Revision: 1628498
URL: http://svn.apache.org/r1628498
Log:
avoid compound lines
Modified:
qpid/proton/branches/examples/tutorial/helloworld_blocking.py
qpid/proton/branches/examples/tutorial/helloworld_simplistic.py
Modified: qpid/proton/branches/examples/tutorial/helloworld_blocking.py
URL: http://svn.apache.org/viewvc/qpid/proton/branches/examples/tutorial/helloworld_blocking.py?rev=1628498&r1=1628497&r2=1628498&view=diff
==============================================================================
--- qpid/proton/branches/examples/tutorial/helloworld_blocking.py (original)
+++ qpid/proton/branches/examples/tutorial/helloworld_blocking.py Tue Sep 30 17:47:59 2014
@@ -28,6 +28,7 @@ class HelloWorldReceiver(IncomingMessage
conn = BlockingConnection("localhost:5672")
conn.receiver("examples", handler=HelloWorldReceiver())
-conn.sender("examples").send_msg(Message(body=u"Hello World!"));
+sender = conn.sender("examples")
+sender.send_msg(Message(body=u"Hello World!"));
conn.run()
Modified: qpid/proton/branches/examples/tutorial/helloworld_simplistic.py
URL: http://svn.apache.org/viewvc/qpid/proton/branches/examples/tutorial/helloworld_simplistic.py?rev=1628498&r1=1628497&r2=1628498&view=diff
==============================================================================
--- qpid/proton/branches/examples/tutorial/helloworld_simplistic.py (original)
+++ qpid/proton/branches/examples/tutorial/helloworld_simplistic.py Tue Sep 30 17:47:59 2014
@@ -29,6 +29,7 @@ class HelloWorldReceiver(IncomingMessage
eventloop = EventLoop()
conn = eventloop.connect("localhost:5672")
conn.receiver("examples", handler=HelloWorldReceiver())
-conn.sender("examples").send_msg(Message(body=u"Hello World!"));
+sender = conn.sender("examples")
+sender.send_msg(Message(body=u"Hello World!"));
eventloop.run()
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org