summaryrefslogtreecommitdiff
path: root/urllib2ext.py
diff options
context:
space:
mode:
authorRémi Cardona <remi.cardona@free.fr>2014-07-16 08:53:31 +0200
committerRémi Cardona <remi.cardona@free.fr>2014-07-16 08:53:31 +0200
commit90e206fe98d7c057316b272f651373376a2d3539 (patch)
tree6243cfa16150bbb31337864527fbd4293ac1cdc8 /urllib2ext.py
parent397b1b5947f6bea0f5c690bc96b751a8b4ae02ef (diff)
downloadlogilab-common-90e206fe98d7c057316b272f651373376a2d3539.tar.gz
Use "except as" syntax (related to #264017)
Requires python >= 2.6.
Diffstat (limited to 'urllib2ext.py')
-rw-r--r--urllib2ext.py2
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()