# HG changeset patch # User Andre Heinecke # Date 1282726138 0 # Node ID 31874ce6d6218da13001094b3984655a63634981 # Parent 61e72399914c290d061ea49fb216f07715777ddb Filter deprecation warnings from cherrypy in a more specific way diff -r 61e72399914c -r 31874ce6d621 treepkg/web.py --- 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