net/py-stomp.py: Fix build with setuptools 58.0.0+
With hat: python
This commit is contained in:
parent
c750f7c10c
commit
d773e5bfe4
1 changed files with 13 additions and 0 deletions
13
net/py-stomp.py/files/patch-2to3
Normal file
13
net/py-stomp.py/files/patch-2to3
Normal file
|
@ -0,0 +1,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)
|
Loading…
Reference in a new issue