/usr/lib/python2.7/dist-packages/flower/views/error.py is in python-flower 0.8.3+dfsg-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 | from __future__ import absolute_import
import tornado.web
from ..views import BaseHandler
class NotFoundErrorHandler(BaseHandler):
def get(self):
raise tornado.web.HTTPError(404)
def post(self):
raise tornado.web.HTTPError(404)
|