comparison 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
comparison
equal deleted inserted replaced
458:61e72399914c 459:31874ce6d621
12 from genshi.template import TemplateLoader 12 from genshi.template import TemplateLoader
13 13
14 # TODO see issue #1557 eliminate the dependency on cherrypy 14 # TODO see issue #1557 eliminate the dependency on cherrypy
15 # For now just ignore the warnings caused by cherrypy 15 # For now just ignore the warnings caused by cherrypy
16 import warnings 16 import warnings
17 warnings.simplefilter("ignore", category=DeprecationWarning) 17 warnings.filterwarnings("ignore", "the md5 module is deprecated",
18 category=DeprecationWarning, module=__name__)
18 import cherrypy 19 import cherrypy
19 from cherrypy import expose 20 from cherrypy import expose
20 from cherrypy.lib import cptools 21 from cherrypy.lib import cptools
21 22
22 import report 23 import report
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)