diff options
author | Marius Gedminas <marius@gedmin.as> | 2013-02-07 20:35:58 +0000 |
---|---|---|
committer | Marius Gedminas <marius@gedmin.as> | 2013-02-07 20:35:58 +0000 |
commit | ab855fcf0db3af83f96e0e04874ed45d5abd01ef (patch) | |
tree | 8a887fb28426e1d9617f336d8daccd4a4eb4db70 | |
parent | 2040fbcf258bae67bd4d767baab14842e81de1d5 (diff) | |
download | zope-tal-ab855fcf0db3af83f96e0e04874ed45d5abd01ef.tar.gz |
Towards Py3K: use f(*args) instead of apply(f, args)
-rw-r--r-- | src/zope/tal/timer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zope/tal/timer.py b/src/zope/tal/timer.py index 5162baf..6c70f70 100644 --- a/src/zope/tal/timer.py +++ b/src/zope/tal/timer.py @@ -46,7 +46,7 @@ def timefunc(count, func, *args): 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)) |