[Zope-Checkins] CVS: ZODB3/ThreadedAsync - LoopCallback.py:1.12
Jeremy Hylton
jeremy at zope.com
Fri Jan 2 16:16:50 EST 2004
Update of /cvs-repository/ZODB3/ThreadedAsync
In directory cvs.zope.org:/tmp/cvs-serv9389
Modified Files:
LoopCallback.py
Log Message:
Get rid of the apply() calls now.
=== ZODB3/ThreadedAsync/LoopCallback.py 1.11 => 1.12 ===
--- ZODB3/ThreadedAsync/LoopCallback.py:1.11 Fri Nov 28 11:44:57 2003
+++ ZODB3/ThreadedAsync/LoopCallback.py Fri Jan 2 16:16:49 2004
@@ -62,7 +62,7 @@
_loop_lock.acquire()
try:
if _looping is not None:
- apply(callback, (_looping,) + args, kw or {})
+ callback(_looping, *args, **(kw or {}))
else:
_loop_callbacks.append((callback, args, kw))
finally:
@@ -85,7 +85,7 @@
_looping = map
while _loop_callbacks:
cb, args, kw = _loop_callbacks.pop()
- apply(cb, (map,) + args, kw or {})
+ cb(map, *args, **(kw or {}))
finally:
_loop_lock.release()
More information about the Zope-Checkins
mailing list