Commit 3901d91b authored by Denis Bilenko's avatar Denis Bilenko

Event: add dummy _reset_internal_locks

parent 16af4620
...@@ -114,6 +114,12 @@ class Event(object): ...@@ -114,6 +114,12 @@ class Event(object):
except: except:
self.hub.handle_error((link, self), *sys.exc_info()) self.hub.handle_error((link, self), *sys.exc_info())
def _reset_internal_locks(self):
# for compatibility with threading.Event (only in case of patch_all(Event=True), by default Event is not pathed)
# Exception AttributeError: AttributeError("'Event' object has no attribute '_reset_internal_locks'",)
# in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
pass
class AsyncResult(object): class AsyncResult(object):
"""A one-time event that stores a value or an exception. """A one-time event that stores a value or an exception.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment