From: jamesbunton Date: Sun, 2 Jul 2006 13:26:04 +0000 (+0000) Subject: Suppress SSL warning X-Git-Url: https://code.delx.au/pymsnt/commitdiff_plain/baf7801cf0cba89e3b270c9999891c3c134bbb27 Suppress SSL warning git-svn-id: http://delx.cjb.net/svn/pymsnt/trunk@181 55fbd22a-6204-0410-b2f0-b6c764c7e90a committer: jamesbunton --- diff --git a/src/tlib/xmlw.py b/src/tlib/xmlw.py index dc4625c..7341636 100644 --- a/src/tlib/xmlw.py +++ b/src/tlib/xmlw.py @@ -60,9 +60,12 @@ def parseFile(filename, beExtremelyLenient=False): return t.root -# Suppress the annoying warning we get with Twisted 1.3 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)) +# 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")