Commit 1655cb89 authored by Vincent Pelletier's avatar Vincent Pelletier

Remove unneeded "global" statements.

Add a comment about "assert" statement.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19265 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4513d4a9
...@@ -706,8 +706,8 @@ class ActivityTool (Folder, UniqueObject): ...@@ -706,8 +706,8 @@ class ActivityTool (Folder, UniqueObject):
can be only one access at a time to a key can be only one access at a time to a key
- GIL protects us when accessing python instances - GIL protects us when accessing python instances
""" """
global global_activity_buffer # Safeguard: make sure we are wrapped in acquisition context before
global global_activity_buffer_lock # using our path as an activity tool instance-wide identifier.
assert getattr(self, 'aq_self', None) is not None assert getattr(self, 'aq_self', None) is not None
my_instance_key = self.getPhysicalPath() my_instance_key = self.getPhysicalPath()
my_thread_key = get_ident() my_thread_key = get_ident()
......
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