summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodolfo Carvalho <rhcarvalho@gmail.com>2011-12-30 17:25:03 -0200
committerRodolfo Carvalho <rhcarvalho@gmail.com>2011-12-30 17:25:03 -0200
commit8cafa8578f35aa96205b7c163ba9c272ca27a1b5 (patch)
treebecae3b7b86a8352f76624b45b26ee8ed9a02e88
parentb74ea47650b8f75f30c367d038bdefb6bfee0711 (diff)
downloadslixmpp-8cafa8578f35aa96205b7c163ba9c272ca27a1b5.tar.gz
slixmpp-8cafa8578f35aa96205b7c163ba9c272ca27a1b5.tar.bz2
slixmpp-8cafa8578f35aa96205b7c163ba9c272ca27a1b5.tar.xz
slixmpp-8cafa8578f35aa96205b7c163ba9c272ca27a1b5.zip
Update examples to use the block'' argument instead of the deprecated threaded''.
-rwxr-xr-xexamples/adhoc_provider.py2
-rwxr-xr-xexamples/adhoc_user.py2
-rwxr-xr-xexamples/disco_browser.py2
-rwxr-xr-xexamples/echo_client.py2
-rwxr-xr-xexamples/echo_component.py2
-rwxr-xr-xexamples/muc.py2
-rwxr-xr-xexamples/ping.py2
-rwxr-xr-xexamples/proxy_echo_client.py2
-rw-r--r--examples/roster_browser.py2
-rwxr-xr-xexamples/send_client.py2
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.")