summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-05-14 22:17:39 -0700
committerLance Stout <lancestout@gmail.com>2012-05-14 22:17:39 -0700
commit9c4886e7467a9f98356d78141e14999a044719ea (patch)
tree594b5bd5bdc144f0620d91aa7b306fa02ead58f2 /examples
parente0bcd5d72245908200afde1ea4c4cb980f054f8d (diff)
downloadslixmpp-9c4886e7467a9f98356d78141e14999a044719ea.tar.gz
slixmpp-9c4886e7467a9f98356d78141e14999a044719ea.tar.bz2
slixmpp-9c4886e7467a9f98356d78141e14999a044719ea.tar.xz
slixmpp-9c4886e7467a9f98356d78141e14999a044719ea.zip
Remove extra connection info so that examples run without modification.
GTalk users may still need to change the connect() call if dnspython is not installed, as usual.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/custom_stanzas/custom_stanza_provider.py2
-rwxr-xr-xexamples/custom_stanzas/custom_stanza_user.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/custom_stanzas/custom_stanza_provider.py b/examples/custom_stanzas/custom_stanza_provider.py
index 40a77204..b532c17c 100755
--- a/examples/custom_stanzas/custom_stanza_provider.py
+++ b/examples/custom_stanzas/custom_stanza_provider.py
@@ -159,7 +159,7 @@ if __name__ == '__main__':
# xmpp.ca_certs = "path/to/ca/cert"
# Connect to the XMPP server and start processing XMPP stanzas.
- if xmpp.connect(('xmpp-server', 5222)):
+ if xmpp.connect():
# 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
diff --git a/examples/custom_stanzas/custom_stanza_user.py b/examples/custom_stanzas/custom_stanza_user.py
index eabb45fe..5b5042c7 100755
--- a/examples/custom_stanzas/custom_stanza_user.py
+++ b/examples/custom_stanzas/custom_stanza_user.py
@@ -161,7 +161,7 @@ if __name__ == '__main__':
# xmpp.ca_certs = "path/to/ca/cert"
# Connect to the XMPP server and start processing XMPP stanzas.
- if xmpp.connect(('xmpp-server', 5222)):
+ if xmpp.connect():
# 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