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:
@@ -159,7 +159,7 @@ if __name__ == '__main__':
|
|||||||
# xmpp.ca_certs = "path/to/ca/cert"
|
# xmpp.ca_certs = "path/to/ca/cert"
|
||||||
|
|
||||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
# 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
|
# 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
|
# 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
|
# the one in the JID. For example, to use Google Talk you would
|
||||||
|
@@ -161,7 +161,7 @@ if __name__ == '__main__':
|
|||||||
# xmpp.ca_certs = "path/to/ca/cert"
|
# xmpp.ca_certs = "path/to/ca/cert"
|
||||||
|
|
||||||
# Connect to the XMPP server and start processing XMPP stanzas.
|
# 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
|
# 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
|
# 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
|
# the one in the JID. For example, to use Google Talk you would
|
||||||
|
Reference in New Issue
Block a user