diff options
author | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-03-18 12:47:35 +0100 |
---|---|---|
committer | Cyril Roelandt <cyril.roelandt@enovance.com> | 2014-03-18 12:47:35 +0100 |
commit | fbd07d8a7cf88daf5d821601578d2f7bc1c92928 (patch) | |
tree | 85154672d76bd72b10b6277a5189e1b6587ae11a /paste/registry.py | |
parent | 674ae7718bc06a8b8c8b658075bf82c8198fb632 (diff) | |
download | paste-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.py | 4 |
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 |