diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2015-11-13 06:04:45 -0800 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2015-11-14 09:33:42 +0100 |
commit | 2dfef7c86f7cbf36095b862067e0482da8cb357e (patch) | |
tree | f6f21221ff892916c64d090f788b44aa4c6d5cc4 /contrib | |
parent | 704ff438b5aca2fcf26431233bfb3950ce8e677a (diff) | |
download | m2crypto-2dfef7c86f7cbf36095b862067e0482da8cb357e.tar.gz |
Fix syntax for raising exceptions for Python 3. [PEP 3109] [PEP 0352]
See:
https://www.python.org/dev/peps/pep-3109/
https://www.python.org/dev/peps/pep-0352/
This syntax has been backported to Python 2.5 and Python 2.6.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/isaac.httpslib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/isaac.httpslib.py b/contrib/isaac.httpslib.py index ae9d23d..627a8fd 100644 --- a/contrib/isaac.httpslib.py +++ b/contrib/isaac.httpslib.py @@ -99,7 +99,7 @@ elif sys.version[:3] == '1.5': host, port = host[:i], host[i+1:] try: port = string.atoi(port) except string.atoi_error: - raise socket.error, "nonnumeric port" + raise socket.error("nonnumeric port") if not port: port = HTTPS_PORT self.sock = SSL.Connection(self.ssl_ctx) if self.debuglevel > 0: print 'connect:', (host, port) |