From 2dc230a68b8a614cc31130177496fdfae568abf6 Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Fri, 30 Dec 2011 00:08:05 -0200 Subject: Replace pydns with dnspython in the comments of the examples. --- examples/adhoc_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/adhoc_user.py') diff --git a/examples/adhoc_user.py b/examples/adhoc_user.py index ac157edd..17013068 100755 --- a/examples/adhoc_user.py +++ b/examples/adhoc_user.py @@ -198,7 +198,7 @@ if __name__ == '__main__': # Connect to the XMPP server and start processing XMPP stanzas. if xmpp.connect(): - # If you do not have the pydns library installed, you will need + # If you do not have the dnspython library installed, you will need # to manually specify the name of the server if it does not match # the one in the JID. For example, to use Google Talk you would # need to use: -- cgit v1.2.3 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_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/adhoc_user.py') 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.") -- cgit v1.2.3