From: jamesbunton Date: Tue, 25 Apr 2006 10:20:08 +0000 (+0000) Subject: Suppressed twisted.words deprecation warning properly. X-Git-Url: https://code.delx.au/pymsnt/commitdiff_plain/bb415e5dbd19e64d670f5702084d0678f52e11da?ds=sidebyside Suppressed twisted.words deprecation warning properly. git-svn-id: http://delx.cjb.net/svn/pymsnt/trunk@143 55fbd22a-6204-0410-b2f0-b6c764c7e90a committer: jamesbunton --- diff --git a/src/tlib/xmlw.py b/src/tlib/xmlw.py index ea96e9b..dc4625c 100644 --- a/src/tlib/xmlw.py +++ b/src/tlib/xmlw.py @@ -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")