summaryrefslogtreecommitdiff
path: root/sleekxmpp
diff options
context:
space:
mode:
authorBrian Beggs <macdiesel@gmail.com>2010-07-01 09:17:45 -0400
committerBrian Beggs <macdiesel@gmail.com>2010-07-01 09:17:45 -0400
commitd763795b2cb01fd90b8d7661bfafdb80d84e13c8 (patch)
treea3338228fae061aebed3b6e69d231e22ec5351f2 /sleekxmpp
parentfff54eaf2f069db22c2a0a3cf0e522d628e188b3 (diff)
parent1e3a6e1b5f06d307295be6b4ccaf75bf2a48399d (diff)
downloadslixmpp-d763795b2cb01fd90b8d7661bfafdb80d84e13c8.tar.gz
slixmpp-d763795b2cb01fd90b8d7661bfafdb80d84e13c8.tar.bz2
slixmpp-d763795b2cb01fd90b8d7661bfafdb80d84e13c8.tar.xz
slixmpp-d763795b2cb01fd90b8d7661bfafdb80d84e13c8.zip
Merge remote branch 'fritzy/master'
Conflicts: sleekxmpp/__init__.py sleekxmpp/basexmpp.py sleekxmpp/stanza/error.py
Diffstat (limited to 'sleekxmpp')
-rw-r--r--sleekxmpp/__init__.py5
-rw-r--r--sleekxmpp/stanza/error.py8
2 files changed, 6 insertions, 7 deletions
diff --git a/sleekxmpp/__init__.py b/sleekxmpp/__init__.py
index cf43ede7..b62e35db 100644
--- a/sleekxmpp/__init__.py
+++ b/sleekxmpp/__init__.py
@@ -116,8 +116,7 @@ class ClientXMPP(basexmpp, XMLStream):
else:
logging.debug("Since no address is supplied, attempting SRV lookup.")
try:
- answers = dns.resolver.query("_xmpp-client._tcp.%s" % self.domain,
- dns.rdatatype.SRV )
+ answers = dns.resolver.query("_xmpp-client._tcp.%s" % self.server, dns.rdatatype.SRV)
except dns.resolver.NXDOMAIN:
logging.debug("No appropriate SRV record found. Using JID server name.")
else:
@@ -335,4 +334,4 @@ def md5digest(data):
except ImportError:
import md5
md5 = md5.new(data)
- return md5.hexdigest() \ No newline at end of file
+ return md5.hexdigest()
diff --git a/sleekxmpp/stanza/error.py b/sleekxmpp/stanza/error.py
index ee46722a..3346ceb2 100644
--- a/sleekxmpp/stanza/error.py
+++ b/sleekxmpp/stanza/error.py
@@ -1,9 +1,9 @@
"""
- SleekXMPP: The Sleek XMPP Library
- Copyright (C) 2010 Nathanael C. Fritz
- This file is part of SleekXMPP.
+ SleekXMPP: The Sleek XMPP Library
+ Copyright (C) 2010 Nathanael C. Fritz
+ This file is part of SleekXMPP.
- See the file license.txt for copying permission.
+ See the file license.txt for copying permission.
"""
from .. xmlstream.stanzabase import ElementBase, ET