clarify further; remove unused user of RenderMixin

This commit is contained in:
meejah 2020-02-13 06:27:10 -07:00
parent ace99a1724
commit 733b7932ce
2 changed files with 4 additions and 3 deletions

View File

@ -365,7 +365,9 @@ class NeedOperationHandleError(WebError):
pass
# XXX should be phased out by the nevow -> twisted.web port
# XXX should be phased out by the nevow -> twisted.web port (that is,
# this whole class should have no users and can be delted once the
# port away from nevow is complete)
class RenderMixin(object):
def renderHTTP(self, ctx):

View File

@ -44,7 +44,6 @@ from allmydata.web.common import (
get_root,
parse_replace_arg,
should_create_intermediate_directories,
RenderMixin,
humanize_failure,
convert_children_json,
get_format,
@ -1444,7 +1443,7 @@ class DeepCheckStreamer(dirnode.DeepStats):
return ""
class UnknownNodeHandler(RenderMixin, Resource):
class UnknownNodeHandler(Resource):
def __init__(self, client, node, parentnode=None, name=None):
super(UnknownNodeHandler, self).__init__()
assert node