Commit 472d1572 authored by Julien Muchembled's avatar Julien Muchembled

Implement ActiveWrapper.__repr__

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24653 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ec7d3f75
...@@ -428,6 +428,10 @@ class ActiveWrapper: ...@@ -428,6 +428,10 @@ class ActiveWrapper:
self.__dict__['__active_process'], self.__dict__['__active_process'],
self.__dict__['__kw'], id) self.__dict__['__kw'], id)
def __repr__(self):
return '<%s at 0x%x to %r>' % (self.__class__.__name__, id(self),
self.__dict__['__passive_self'])
# Set to False when shutting down. Access outside of process_shutdown must # Set to False when shutting down. Access outside of process_shutdown must
# be done under the protection of is_running_lock lock. # be done under the protection of is_running_lock lock.
is_running = True is_running = True
......
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