summaryrefslogtreecommitdiff
path: root/paste/registry.py
diff options
context:
space:
mode:
authorCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 12:47:35 +0100
committerCyril Roelandt <cyril.roelandt@enovance.com>2014-03-18 12:47:35 +0100
commitfbd07d8a7cf88daf5d821601578d2f7bc1c92928 (patch)
tree85154672d76bd72b10b6277a5189e1b6587ae11a /paste/registry.py
parent674ae7718bc06a8b8c8b658075bf82c8198fb632 (diff)
downloadpaste-fbd07d8a7cf88daf5d821601578d2f7bc1c92928.tar.gz
Python 3: Replace "except Exception, exc" with "except Exception as exc:"
Diffstat (limited to 'paste/registry.py')
-rw-r--r--paste/registry.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paste/registry.py b/paste/registry.py
index ff47c19..4c0e2b0 100644
--- a/paste/registry.py
+++ b/paste/registry.py
@@ -384,7 +384,7 @@ class RegistryManager(object):
#print "STREAMING"
return self.streaming_iter(app_iter, reg, environ)
- except Exception, e:
+ except Exception as e:
# Regardless of if the content is an iterable, generator, list
# or tuple, we clean-up right now. If its an iterable/generator
# care should be used to ensure the generator has its own ref
@@ -415,7 +415,7 @@ class RegistryManager(object):
try:
for item in app_iter:
yield item
- except Exception, e:
+ except Exception as e:
# Regardless of if the content is an iterable, generator, list
# or tuple, we clean-up right now. If its an iterable/generator
# care should be used to ensure the generator has its own ref