Commit b81e3477 authored by Vincent Pelletier's avatar Vincent Pelletier

Fix naming convnetion of local variable. Found by pylint.

Fix shadowing "callable" global.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@968 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 88a4d5b9
......@@ -277,15 +277,15 @@ class Application(object):
if node.getState() != HIDDEN_STATE:
break
def queueEvent(self, callable, *args, **kwargs):
self.event_queue.append((callable, args, kwargs))
def queueEvent(self, some_callable, *args, **kwargs):
self.event_queue.append((some_callable, args, kwargs))
def executeQueuedEvents(self):
l = len(self.event_queue)
p = self.event_queue.popleft
for i in xrange(l):
_callable, args, kwargs = p()
_callable(*args, **kwargs)
some_callable, args, kwargs = p()
some_callable(*args, **kwargs)
def shutdown(self):
"""Close all connections and exit"""
......
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