diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2015-11-13 06:18:22 -0800 |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2015-11-13 14:23:13 -0800 |
commit | 11c327f2d345019ee000cadd53836be655a846be (patch) | |
tree | 536c0b5099711681a9c815358f83d3e284960bf4 /M2Crypto/httpslib.py | |
parent | 704ff438b5aca2fcf26431233bfb3950ce8e677a (diff) | |
download | m2crypto-11c327f2d345019ee000cadd53836be655a846be.tar.gz |
Fix exception handling syntax for Python 3. [PEP-3110]
This syntax was backported to Python 2.6:
https://docs.python.org/2/whatsnew/2.6.html#pep-3110-exception-handling-changes
Diffstat (limited to 'M2Crypto/httpslib.py')
-rw-r--r-- | M2Crypto/httpslib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/M2Crypto/httpslib.py b/M2Crypto/httpslib.py index d34d498..646d420 100644 --- a/M2Crypto/httpslib.py +++ b/M2Crypto/httpslib.py @@ -59,7 +59,7 @@ class HTTPSConnection(HTTPConnection): self.sock = sock sock = None return - except socket.error, e: + except socket.error as e: # Other exception are probably SSL-related, in that case we # abort and the exception is forwarded to the caller. error = e |