Show More
@@ -284,16 +284,17 class fncachestore(basicstore): | |||
|
284 | 284 | self.pathjoiner = pathjoiner |
|
285 | 285 | self.path = self.pathjoiner(path, 'store') |
|
286 | 286 | self.createmode = _calcmode(self.path) |
|
287 |
|
|
|
288 |
|
|
|
289 |
|
|
|
287 | op = opener(self.path) | |
|
288 | op.createmode = self.createmode | |
|
289 | fnc = fncache(op) | |
|
290 | self.fncache = fnc | |
|
290 | 291 | |
|
291 | 292 | def fncacheopener(path, mode='r', *args, **kw): |
|
292 | 293 | if (mode not in ('r', 'rb') |
|
293 | 294 | and path.startswith('data/') |
|
294 |
and path not in |
|
|
295 |
|
|
|
296 |
return |
|
|
295 | and path not in fnc): | |
|
296 | fnc.add(path) | |
|
297 | return op(hybridencode(path), mode, *args, **kw) | |
|
297 | 298 | self.opener = fncacheopener |
|
298 | 299 | |
|
299 | 300 | def join(self, f): |
General Comments 0
You need to be logged in to leave comments.
Login now