]> code.delx.au - pymsnt/commitdiff
Suppress SSL warning
authorjamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>
Sun, 2 Jul 2006 13:26:04 +0000 (13:26 +0000)
committerjamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>
Sun, 2 Jul 2006 13:26:04 +0000 (13:26 +0000)
git-svn-id: http://delx.cjb.net/svn/pymsnt/trunk@181 55fbd22a-6204-0410-b2f0-b6c764c7e90a

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

src/tlib/xmlw.py

index dc4625c7210712169fecc95c2ea3dbdced9d34f0..7341636f1c869dd3f3872f423a733dcc045cb80b 100644 (file)
@@ -60,9 +60,12 @@ def parseFile(filename, beExtremelyLenient=False):
        return t.root
 
 
        return t.root
 
 
-# Suppress the annoying warning we get with Twisted 1.3
 import warnings, re
 import warnings, re
+# Suppress the annoying warning we get with Twisted 1.3 words being deprecated
 warnings.filters.append(("ignore", None, UserWarning, re.compile("twisted.words"), 21))
 warnings.filters.append(("ignore", None, UserWarning, re.compile("twisted.words"), 21))
+# Suppress the OpenSSL UserWarning
+warnings.filters.append(("ignore", re.compile("SSL connection shutdown possibly unreliable, please upgrade to ver 0.XX"), UserWarning, re.compile("twisted.internet.tcp"), 216))
+
 
 try:
        log.msg("Trying to import XML DOM")
 
 try:
        log.msg("Trying to import XML DOM")