From 467705922e042dfc0c5f41c36115422f86c613ae Mon Sep 17 00:00:00 2001 From: ianb Date: Mon, 22 Aug 2005 22:06:47 +0000 Subject: paste.deployified printdebug --- paste/printdebug.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'paste/printdebug.py') diff --git a/paste/printdebug.py b/paste/printdebug.py index 83250ab..95630e3 100644 --- a/paste/printdebug.py +++ b/paste/printdebug.py @@ -37,8 +37,8 @@ class PrintDebugMiddleware(object): 'Log messages
' '%s') - def __init__(self, subapp, force_content_type=False): - self.subapp = subapp + def __init__(self, app, global_conf=None, force_content_type=False): + self.app = app self.force_content_type = force_content_type def __call__(self, environ, start_response): @@ -57,7 +57,7 @@ class PrintDebugMiddleware(object): try: threadedprint.register(replacement_stdout) status, headers, body = wsgilib.capture_output( - environ, start_response, self.subapp) + environ, start_response, self.app) if status is None: # Some error occurred status = '500 Server Error' -- cgit v1.2.1