net/py-stomp.py: Fix build with setuptools 58.0.0+

With hat:	python
This commit is contained in:
Po-Chuan Hsieh 2022-03-25 21:33:23 +08:00
parent c750f7c10c
commit d773e5bfe4
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B

View 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)