changeset 459:31874ce6d621

Filter deprecation warnings from cherrypy in a more specific way
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 25 Aug 2010 08:48:58 +0000
parents 61e72399914c
children 10d4cbffcc07
files treepkg/web.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/treepkg/web.py	Tue Aug 24 15:41:48 2010 +0000
+++ b/treepkg/web.py	Wed Aug 25 08:48:58 2010 +0000
@@ -14,7 +14,8 @@
 # TODO see issue #1557 eliminate the dependency on cherrypy
 # For now just ignore the warnings caused by cherrypy
 import warnings
-warnings.simplefilter("ignore", category=DeprecationWarning)
+warnings.filterwarnings("ignore", "the md5 module is deprecated",
+                        category=DeprecationWarning, module=__name__)
 import cherrypy
 from cherrypy import expose
 from cherrypy.lib import cptools
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)