[Checkins] SVN: zope.tal/trunk/src/zope/tal/timer.py Towards Py3K: use f(*args) instead of apply(f, args)

Marius Gedminas cvs-admin at zope.org
Thu Feb 7 20:35:58 UTC 2013


Log message for revision 129183:
  Towards Py3K: use f(*args) instead of apply(f, args)

Changed:
  U   zope.tal/trunk/src/zope/tal/timer.py

-=-
Modified: zope.tal/trunk/src/zope/tal/timer.py
===================================================================
--- zope.tal/trunk/src/zope/tal/timer.py	2013-02-07 20:35:56 UTC (rev 129182)
+++ zope.tal/trunk/src/zope/tal/timer.py	2013-02-07 20:35:58 UTC (rev 129183)
@@ -46,7 +46,7 @@
     sys.stderr.flush()
     t0 = time.clock()
     for i in range(count):
-        result = apply(func, args)
+        result = func(*args)
     t1 = time.clock()
     sys.stderr.write("%6.3f secs for %d calls, i.e. %4.0f msecs per call\n"
                      % ((t1-t0), count, 1000*(t1-t0)/count))



More information about the checkins mailing list