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.
This commit is contained in:
Lance Stout 2012-05-14 22:17:39 -07:00
parent e0bcd5d722
commit 9c4886e746
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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