]> code.delx.au - pymsnt/blobdiff - src/xmlconfig.py
The <host/> config option now sets the bind address for outgoing connections
[pymsnt] / src / xmlconfig.py
index 11eab8fe232ed350a3b2c5c1cca8ef610f8a6f2a..7b0e1dd105252620240f606d368b98defd540a92 100644 (file)
@@ -1,7 +1,7 @@
 # Copyright 2004-2005 James Bunton <james@delx.cjb.net>
 # Licensed for distribution under the GPL version 2, check COPYING for details
 
-from tlib import xmlw
+from twisted.words.xish.domish import parseFile
 
 import sys, os
 
@@ -23,7 +23,7 @@ def importFile(configFile):
 
        # Get ourself a DOM
        try:
-               root = xmlw.parseFile(configFile)
+               root = parseFile(configFile)
        except Exception, e:
                invalidError("Error parsing configuration file: " + str(e))