summaryrefslogtreecommitdiff
path: root/paste/evalexception
diff options
context:
space:
mode:
authorpjenvey <devnull@localhost>2006-08-11 03:35:18 +0000
committerpjenvey <devnull@localhost>2006-08-11 03:35:18 +0000
commit2de006bd02329d9ca6da3d34b349c44dc729c0e0 (patch)
treed9477a4069542af27f1c99a8880eb6dbfd1854d6 /paste/evalexception
parentc31b368bfbed0f4c542fb74645ec182520aa16b1 (diff)
downloadpaste-2de006bd02329d9ca6da3d34b349c44dc729c0e0.tar.gz
the catching_iter method is no longer used; removing it
Diffstat (limited to 'paste/evalexception')
-rw-r--r--paste/evalexception/middleware.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/paste/evalexception/middleware.py b/paste/evalexception/middleware.py
index 26850dd..99228b1 100644
--- a/paste/evalexception/middleware.py
+++ b/paste/evalexception/middleware.py
@@ -329,30 +329,6 @@ class EvalException(object):
# @@: it would be nice to deal with bad content types here
return debug_info.content()
- def catching_iter(self, app_iter, environ):
- __traceback_supplement__ = errormiddleware.Supplement, self, environ
- if not app_iter:
- raise StopIteration
- error_on_close = False
- try:
- for v in app_iter:
- yield v
- if hasattr(app_iter, 'close'):
- error_on_close = True
- app_iter.close()
- except:
- response = self.exception_handler(sys.exc_info(), environ)
- if not error_on_close and hasattr(app_iter, 'close'):
- try:
- app_iter.close()
- except:
- close_response = self.exception_handler(
- sys.exc_info(), environ)
- response += (
- '<hr noshade>Error in .close():<br>%s'
- % close_response)
- yield response
-
def exception_handler(self, exc_info, environ):
simple_html_error = False
if self.xmlhttp_key: