import and naming cleanups post-merge

This commit is contained in:
Jean-Paul Calderone 2020-10-16 12:49:36 -04:00
parent 28505ab57d
commit a22426011b

View File

@ -50,9 +50,6 @@ from twisted.internet.defer import (
from twisted.web.resource import ( from twisted.web.resource import (
IResource, IResource,
) )
from nevow import appserver
from nevow.inevow import IRequest
from twisted.web.iweb import IRequest as ITwistedRequest from twisted.web.iweb import IRequest as ITwistedRequest
from twisted.python import log from twisted.python import log
if PY2: if PY2:
@ -376,7 +373,7 @@ def humanize_failure(f):
class MyExceptionHandler(DefaultExceptionHandler, object): class MyExceptionHandler(DefaultExceptionHandler, object):
def renderHTTP_exception(self, ctx, f): def renderHTTP_exception(self, ctx, f):
req = IRequest(ctx) req = INevowRequest(ctx)
req.write(_renderHTTP_exception(req, f)) req.write(_renderHTTP_exception(req, f))
req.finishRequest(False) req.finishRequest(False)