Mercurial > treepkg > treepkg
diff treepkg/web.py @ 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 | 18c175c28077 |
children |
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