mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-21 05:53:12 +00:00
import and naming cleanups post-merge
This commit is contained in:
parent
28505ab57d
commit
a22426011b
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user