mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Use six.reraise for py3 compatability
This commit is contained in:
parent
6d80789cf1
commit
25f5a90bd6
1 changed files with 1 additions and 7 deletions
|
@ -760,18 +760,12 @@ class IPCMessageSubscriber(object):
|
|||
if data is None:
|
||||
break
|
||||
elif isinstance(data, IPCExceptionProxy):
|
||||
self.reraise(data.orig_info)
|
||||
six.reraise(*data.orig_info)
|
||||
elif callback:
|
||||
self.service.io_loop.spawn_callback(callback, data)
|
||||
else:
|
||||
raise tornado.gen.Return(data)
|
||||
|
||||
def reraise(self, exc_info):
|
||||
if six.PY2:
|
||||
raise exc_info[0], exc_info[1], exc_info[2] # pylint: disable=W1699
|
||||
else:
|
||||
raise exc_info[0].with_traceback(exc_info[1], exc_info[2])
|
||||
|
||||
def read_sync(self, timeout=None):
|
||||
'''
|
||||
Read a message from an IPC socket
|
||||
|
|
Loading…
Add table
Reference in a new issue