]> code.delx.au - pymsnt/commitdiff
Suppressed twisted.words deprecation warning properly.
authorjamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>
Tue, 25 Apr 2006 10:20:08 +0000 (10:20 +0000)
committerjamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>
Tue, 25 Apr 2006 10:20:08 +0000 (10:20 +0000)
git-svn-id: http://delx.cjb.net/svn/pymsnt/trunk@143 55fbd22a-6204-0410-b2f0-b6c764c7e90a

committer: jamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>

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")