[Zope-Checkins] CVS: Zope/lib/python/Products/Sessions - BrowserIdManager.py:1.18

Fred L. Drake, Jr. fred@zope.com
Wed, 9 Jul 2003 12:25:45 -0400


Update of /cvs-repository/Zope/lib/python/Products/Sessions
In directory cvs.zope.org:/tmp/cvs-serv12488/Products/Sessions

Modified Files:
	BrowserIdManager.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/Products/Sessions/BrowserIdManager.py 1.17 => 1.18 ===
--- Zope/lib/python/Products/Sessions/BrowserIdManager.py:1.17	Wed Aug 21 13:13:10 2002
+++ Zope/lib/python/Products/Sessions/BrowserIdManager.py	Wed Jul  9 12:25:10 2003
@@ -507,7 +507,7 @@
     TimeStamp=TimeStamp.TimeStamp, translate=string.translate
     ):
     t=time()
-    ts=split(b2a(`apply(TimeStamp,(gmtime(t)[:5]+(t%60,)))`)[:-1],'=')[0]
+    ts=split(b2a(`TimeStamp(*gmtime(t)[:5]+(t%60,))`)[:-1],'=')[0]
     return translate(ts, b64_trans)
 
 def getB64TStampToInt(