summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2015-11-13 06:04:45 -0800
committerMatěj Cepl <mcepl@cepl.eu>2015-11-14 09:33:42 +0100
commit2dfef7c86f7cbf36095b862067e0482da8cb357e (patch)
treef6f21221ff892916c64d090f788b44aa4c6d5cc4 /contrib
parent704ff438b5aca2fcf26431233bfb3950ce8e677a (diff)
downloadm2crypto-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.py2
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)