]> code.delx.au - pymsnt/blobdiff - src/housekeep.py
Merged branches/msnfix 204:217 to trunk
[pymsnt] / src / housekeep.py
index 82a459bdd46ebff23deb0dca16f7e73d61b6bc7e..057bb348853474d2e6cd7d4c7e1b0774d0a51e31 100644 (file)
@@ -1,7 +1,7 @@
 # Copyright 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.protocols.jabber.jid import internJID
 
 import utils
 import config
@@ -72,7 +72,7 @@ def doSpoolPrepCheck():
                        if not os.path.isfile(file):
                                continue
                        file = xdb.unmangle(file).decode("utf-8")
-                       filej = xmlw.jid.intern(file).full()
+                       filej = internJID(file).full()
                        if(file != filej):
                                file = xdb.mangle(file)
                                filej = xdb.mangle(filej)