]> code.delx.au - pymsnt/blobdiff - src/tlib/xmlw.py
Suppressed twisted.words deprecation warning properly.
[pymsnt] / src / tlib / xmlw.py
index ea96e9b5c033476a820577596df5510ac8ea5f2b..dc4625c7210712169fecc95c2ea3dbdced9d34f0 100644 (file)
@@ -62,7 +62,7 @@ def parseFile(filename, beExtremelyLenient=False):
 
 # Suppress the annoying warning we get with Twisted 1.3
 import warnings, re
-warnings.filters.append(("ignore", None, UserWarning, re.compile("twisted.words.__init__"), 21))
+warnings.filters.append(("ignore", None, UserWarning, re.compile("twisted.words"), 21))
 
 try:
        log.msg("Trying to import XML DOM")