[Treepkg-commits] r419 - trunk/treepkg

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Aug 25 10:48:58 CEST 2010


Author: aheinecke
Date: 2010-08-25 10:48:58 +0200 (Wed, 25 Aug 2010)
New Revision: 419

Modified:
   trunk/treepkg/web.py
Log:
Filter deprecation warnings from cherrypy in a more specific way


Modified: trunk/treepkg/web.py
===================================================================
--- trunk/treepkg/web.py	2010-08-24 15:41:48 UTC (rev 418)
+++ trunk/treepkg/web.py	2010-08-25 08:48:58 UTC (rev 419)
@@ -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



More information about the Treepkg-commits mailing list