Commit 00b5231c authored by Jeremy Hylton's avatar Jeremy Hylton

Generate cache file names in a more straightforward way.

parent 84bc0416
...@@ -73,7 +73,7 @@ file 0 and file 1. ...@@ -73,7 +73,7 @@ file 0 and file 1.
""" """
__version__ = "$Revision: 1.24 $"[11:-2] __version__ = "$Revision: 1.25 $"[11:-2]
import os import os
import sys import sys
...@@ -112,9 +112,8 @@ class ClientCache: ...@@ -112,9 +112,8 @@ class ClientCache:
var = os.getcwd() var = os.getcwd()
# Get the list of cache file names # Get the list of cache file names
self._p = p = map(lambda i, p=storage, var=var, c=client: fmt = os.path.join(var, "c%s-%s-%%s.zec" % (storage, client))
os.path.join(var, 'c%s-%s-%s.zec' % (p, c, i)), self._p = p = [fmt % 0, fmt % 1]
(0, 1))
# get the list of cache files # get the list of cache files
self._f = f = [None, None] self._f = f = [None, None]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment