From 8cafa8578f35aa96205b7c163ba9c272ca27a1b5 Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Fri, 30 Dec 2011 17:25:03 -0200 Subject: Update examples to use the block'' argument instead of the deprecated threaded''. --- examples/adhoc_provider.py | 2 +- examples/adhoc_user.py | 2 +- examples/disco_browser.py | 2 +- examples/echo_client.py | 2 +- examples/echo_component.py | 2 +- examples/muc.py | 2 +- examples/ping.py | 2 +- examples/proxy_echo_client.py | 2 +- examples/roster_browser.py | 2 +- examples/send_client.py | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/adhoc_provider.py b/examples/adhoc_provider.py index aaa9a6e7..4d4c3610 100755 --- a/examples/adhoc_provider.py +++ b/examples/adhoc_provider.py @@ -199,7 +199,7 @@ if __name__ == '__main__': # # if xmpp.connect(('talk.google.com', 5222)): # ... - xmpp.process(threaded=False) + xmpp.process(block=True) print("Done") else: print("Unable to connect.") diff --git a/examples/adhoc_user.py b/examples/adhoc_user.py index 17013068..0bc03c15 100755 --- a/examples/adhoc_user.py +++ b/examples/adhoc_user.py @@ -205,7 +205,7 @@ if __name__ == '__main__': # # if xmpp.connect(('talk.google.com', 5222)): # ... - xmpp.process(threaded=False) + xmpp.process(block=True) print("Done") else: print("Unable to connect.") diff --git a/examples/disco_browser.py b/examples/disco_browser.py index 628add1c..6023dd7e 100755 --- a/examples/disco_browser.py +++ b/examples/disco_browser.py @@ -195,6 +195,6 @@ if __name__ == '__main__': # # if xmpp.connect(('talk.google.com', 5222)): # ... - xmpp.process(threaded=False) + xmpp.process(block=True) else: print("Unable to connect.") diff --git a/examples/echo_client.py b/examples/echo_client.py index 02ede14c..cbb04683 100755 --- a/examples/echo_client.py +++ b/examples/echo_client.py @@ -139,7 +139,7 @@ if __name__ == '__main__': # # if xmpp.connect(('talk.google.com', 5222)): # ... - xmpp.process(threaded=False) + xmpp.process(block=True) print("Done") else: print("Unable to connect.") diff --git a/examples/echo_component.py b/examples/echo_component.py index f569e001..d8bcd752 100755 --- a/examples/echo_component.py +++ b/examples/echo_component.py @@ -116,7 +116,7 @@ if __name__ == '__main__': # Connect to the XMPP server and start processing XMPP stanzas. if xmpp.connect(): - xmpp.process(threaded=False) + xmpp.process(block=True) print("Done") else: print("Unable to connect.") diff --git a/examples/muc.py b/examples/muc.py index 24555d7f..7af37449 100755 --- a/examples/muc.py +++ b/examples/muc.py @@ -182,7 +182,7 @@ if __name__ == '__main__': # # if xmpp.connect(('talk.google.com', 5222)): # ... - xmpp.process(threaded=False) + xmpp.process(block=True) print("Done") else: print("Unable to connect.") diff --git a/examples/ping.py b/examples/ping.py index d2749894..d5622ffd 100755 --- a/examples/ping.py +++ b/examples/ping.py @@ -136,7 +136,7 @@ if __name__ == '__main__': # # if xmpp.connect(('talk.google.com', 5222)): # ... - xmpp.process(threaded=False) + xmpp.process(block=True) print("Done") else: print("Unable to connect.") diff --git a/examples/proxy_echo_client.py b/examples/proxy_echo_client.py index eeeb4fbb..1f4ba9d3 100755 --- a/examples/proxy_echo_client.py +++ b/examples/proxy_echo_client.py @@ -163,7 +163,7 @@ if __name__ == '__main__': # # if xmpp.connect(('talk.google.com', 5222)): # ... - xmpp.process(threaded=False) + xmpp.process(block=True) print("Done") else: print("Unable to connect.") diff --git a/examples/roster_browser.py b/examples/roster_browser.py index e145338e..7926b096 100644 --- a/examples/roster_browser.py +++ b/examples/roster_browser.py @@ -167,7 +167,7 @@ if __name__ == '__main__': # # if xmpp.connect(('talk.google.com', 5222)): # ... - xmpp.process(threaded=False) + xmpp.process(block=True) else: print("Unable to connect.") diff --git a/examples/send_client.py b/examples/send_client.py index 1ddac659..94bb584d 100755 --- a/examples/send_client.py +++ b/examples/send_client.py @@ -138,7 +138,7 @@ if __name__ == '__main__': # # if xmpp.connect(('talk.google.com', 5222)): # ... - xmpp.process(threaded=False) + xmpp.process(block=True) print("Done") else: print("Unable to connect.") -- cgit v1.2.3