From: Greg Price Date: Thu, 29 Oct 2009 05:36:33 +0000 (-0400) Subject: style nit X-Git-Tag: 0.1.0^2~36 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/3598f1d6436624e00475d637983110df5feaea02 style nit svn path=/package_branches/invirt-web/cherrypy-rebased/; revision=2699 --- diff --git a/code/view.py b/code/view.py index bbf0256..1ecc827 100644 --- a/code/view.py +++ b/code/view.py @@ -57,8 +57,7 @@ class MakoLoader(object): cherrypy.request.template = t = lookup.get_template(filename) cherrypy.request.handler = MakoHandler(t, cherrypy.request.handler, content_type) -main = MakoLoader() -cherrypy.tools.mako = cherrypy.Tool('on_start_resource', main) +cherrypy.tools.mako = cherrypy.Tool('on_start_resource', MakoLoader()) def revertStandardError(): """Move stderr to stdout, and return the contents of the old stderr."""