[Zodb-checkins] CVS: ZODB4/src/zodb/zeo - threadedasync.py:1.2.44.1

Jeremy Hylton jeremy at zope.com
Wed Jun 18 15:22:13 EDT 2003


Update of /cvs-repository/ZODB4/src/zodb/zeo
In directory cvs.zope.org:/tmp/cvs-serv5716/src/zodb/zeo

Modified Files:
      Tag: ZODB3-2-merge
	threadedasync.py 
Log Message:
Remove use of apply.


=== ZODB4/src/zodb/zeo/threadedasync.py 1.2 => 1.2.44.1 ===
--- ZODB4/src/zodb/zeo/threadedasync.py:1.2	Wed Dec 25 09:12:22 2002
+++ ZODB4/src/zodb/zeo/threadedasync.py	Wed Jun 18 14:22:13 2003
@@ -52,7 +52,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:
@@ -65,7 +65,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 Zodb-checkins mailing list