[Zope-Checkins] CVS: Zope/lib/python/ZEO - ClientStorage.py:1.107
Fred L. Drake, Jr.
fred@zope.com
Wed, 9 Jul 2003 12:25:49 -0400
Update of /cvs-repository/Zope/lib/python/ZEO
In directory cvs.zope.org:/tmp/cvs-serv12488/ZEO
Modified Files:
ClientStorage.py
Log Message:
Replace apply(f,args,kw) with f(*args,**kw) to avoid deprecation warnings
from Python 2.3.
These warnings are displayed when running the unit tests.
This patch fixes the occurrances that are triggered by the unit tests;
there are probably others.
=== Zope/lib/python/ZEO/ClientStorage.py 1.106 => 1.107 ===
--- Zope/lib/python/ZEO/ClientStorage.py:1.106 Mon Jun 16 13:17:42 2003
+++ Zope/lib/python/ZEO/ClientStorage.py Wed Jul 9 12:25:13 2003
@@ -56,7 +56,7 @@
the argument.
"""
t = time.time()
- t = apply(TimeStamp, (time.gmtime(t)[:5] + (t % 60,)))
+ t = TimeStamp(*time.gmtime(t)[:5] + (t % 60,))
if prev_ts is not None:
t = t.laterThan(prev_ts)
return t