diff options
author | Rémi Cardona <remi.cardona@free.fr> | 2014-07-16 08:53:31 +0200 |
---|---|---|
committer | Rémi Cardona <remi.cardona@free.fr> | 2014-07-16 08:53:31 +0200 |
commit | 90e206fe98d7c057316b272f651373376a2d3539 (patch) | |
tree | 6243cfa16150bbb31337864527fbd4293ac1cdc8 /urllib2ext.py | |
parent | 397b1b5947f6bea0f5c690bc96b751a8b4ae02ef (diff) | |
download | logilab-common-90e206fe98d7c057316b272f651373376a2d3539.tar.gz |
Use "except as" syntax (related to #264017)
Requires python >= 2.6.
Diffstat (limited to 'urllib2ext.py')
-rw-r--r-- | urllib2ext.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/urllib2ext.py b/urllib2ext.py index 08797a4..3e7a36d 100644 --- a/urllib2ext.py +++ b/urllib2ext.py @@ -62,7 +62,7 @@ class HTTPGssapiAuthHandler(urllib2.BaseHandler): if result < 1: raise GssapiAuthError("HTTPGssapiAuthHandler: step 2 failed with %d" % result) return server_response - except GssapiAuthError, exc: + except GssapiAuthError as exc: logging.error(repr(exc)) finally: self.clean_context() |