Made a first pass at cleaning up ComponentXMPP.

This commit is contained in:
Lance Stout
2010-10-06 10:47:05 -04:00
parent 178608f4c0
commit a7410f2146
2 changed files with 125 additions and 59 deletions

View File

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