[Zodb-checkins] CVS: ZODB3/ZEO - ClientCache.py:1.25

Jeremy Hylton jeremy@zope.com
Thu, 1 Aug 2002 15:25:33 -0400


Update of /cvs-repository/ZODB3/ZEO
In directory cvs.zope.org:/tmp/cvs-serv21258

Modified Files:
	ClientCache.py 
Log Message:
Generate cache file names in a more straightforward way.


=== ZODB3/ZEO/ClientCache.py 1.24 => 1.25 ===
                         var = os.getcwd()
 
             # Get the list of cache file names
-            self._p = p = map(lambda i, p=storage, var=var, c=client:
-                                os.path.join(var, 'c%s-%s-%s.zec' % (p, c, i)),
-                              (0, 1))
+            fmt = os.path.join(var, "c%s-%s-%%s.zec" % (storage, client))
+            self._p = p = [fmt % 0, fmt % 1]
             # get the list of cache files
             self._f = f = [None, None]