summaryrefslogtreecommitdiff
path: root/sleekxmpp/basexmpp.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-10-06 10:47:05 -0400
committerLance Stout <lancestout@gmail.com>2010-10-06 10:47:05 -0400
commita7410f2146a912d7302e79b38c49a57a01faee72 (patch)
treebb17139da435efc8eee6972d56bb8dcc9efef3f9 /sleekxmpp/basexmpp.py
parent178608f4c0f48e21e956c9859e85a87e7a7245e1 (diff)
downloadslixmpp-a7410f2146a912d7302e79b38c49a57a01faee72.tar.gz
slixmpp-a7410f2146a912d7302e79b38c49a57a01faee72.tar.bz2
slixmpp-a7410f2146a912d7302e79b38c49a57a01faee72.tar.xz
slixmpp-a7410f2146a912d7302e79b38c49a57a01faee72.zip
Made a first pass at cleaning up ComponentXMPP.
Diffstat (limited to 'sleekxmpp/basexmpp.py')
-rw-r--r--sleekxmpp/basexmpp.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/sleekxmpp/basexmpp.py b/sleekxmpp/basexmpp.py
index edb20d08..2548934e 100644
--- a/sleekxmpp/basexmpp.py
+++ b/sleekxmpp/basexmpp.py
@@ -26,6 +26,14 @@ from sleekxmpp.xmlstream.matcher import *
from sleekxmpp.xmlstream.handler import *
+# Flag indicating if DNS SRV records are available for use.
+SRV_SUPPORT = True
+try:
+ import dns.resolver
+except:
+ SRV_SUPPORT = False
+
+
# In order to make sure that Unicode is handled properly
# in Python 2.x, reset the default encoding.
if sys.version_info < (3, 0):