summaryrefslogtreecommitdiff
path: root/sleekxmpp/__init__.py
diff options
context:
space:
mode:
authorNathan Fritz <nathan@andyet.net>2010-05-26 11:37:01 -0700
committerNathan Fritz <nathan@andyet.net>2010-05-26 11:37:01 -0700
commitfa92bc866beea0476def1f6bf258b6f3bed4c56f (patch)
treef288ee74b5043a22a34cf97fc99be4ff30ac2015 /sleekxmpp/__init__.py
parentf4bc9d9722ea57b5f5d22efeb6bc65cb990e1053 (diff)
downloadslixmpp-fa92bc866beea0476def1f6bf258b6f3bed4c56f.tar.gz
slixmpp-fa92bc866beea0476def1f6bf258b6f3bed4c56f.tar.bz2
slixmpp-fa92bc866beea0476def1f6bf258b6f3bed4c56f.tar.xz
slixmpp-fa92bc866beea0476def1f6bf258b6f3bed4c56f.zip
fixed dns unicode problem
Diffstat (limited to 'sleekxmpp/__init__.py')
-rw-r--r--sleekxmpp/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/__init__.py b/sleekxmpp/__init__.py
index 773f7936..263f1f99 100644
--- a/sleekxmpp/__init__.py
+++ b/sleekxmpp/__init__.py
@@ -96,7 +96,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.server, "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: