summaryrefslogtreecommitdiff
path: root/net/py-stomp.py/files/patch-2to3
blob: 795a89f846bac1aedac8066e74b77c755001940e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- stomp/backwardsock25.py.orig	2016-11-13 14:00:03 UTC
+++ stomp/backwardsock25.py
@@ -25,8 +25,8 @@ def get_socket(host, port, timeout=None):
             sock.connect(sa)
             return sock
 
-        except error, msg:
+        except error as msg:
             if sock is not None:
                 sock.close()
 
-    raise error, ERRMSG
+    raise error(ERRMSG)