Show More
@@ -523,7 +523,7 b' class fncache(object):' | |||||
523 | self._load() |
|
523 | self._load() | |
524 | return iter(self.entries | self.addls) |
|
524 | return iter(self.entries | self.addls) | |
525 |
|
525 | |||
526 |
class _fncachevfs(vfsmod. |
|
526 | class _fncachevfs(vfsmod.proxyvfs): | |
527 | def __init__(self, vfs, fnc, encode): |
|
527 | def __init__(self, vfs, fnc, encode): | |
528 | vfsmod.proxyvfs.__init__(self, vfs) |
|
528 | vfsmod.proxyvfs.__init__(self, vfs) | |
529 | self.fncache = fnc |
|
529 | self.fncache = fnc |
@@ -469,7 +469,7 b' class vfs(abstractvfs):' | |||||
469 |
|
469 | |||
470 | opener = vfs |
|
470 | opener = vfs | |
471 |
|
471 | |||
472 |
class proxyvfs( |
|
472 | class proxyvfs(abstractvfs): | |
473 | def __init__(self, vfs): |
|
473 | def __init__(self, vfs): | |
474 | self.vfs = vfs |
|
474 | self.vfs = vfs | |
475 |
|
475 | |||
@@ -481,7 +481,7 b' class proxyvfs(object):' | |||||
481 | def options(self, value): |
|
481 | def options(self, value): | |
482 | self.vfs.options = value |
|
482 | self.vfs.options = value | |
483 |
|
483 | |||
484 |
class filtervfs( |
|
484 | class filtervfs(proxyvfs, abstractvfs): | |
485 | '''Wrapper vfs for filtering filenames with a function.''' |
|
485 | '''Wrapper vfs for filtering filenames with a function.''' | |
486 |
|
486 | |||
487 | def __init__(self, vfs, filter): |
|
487 | def __init__(self, vfs, filter): | |
@@ -499,7 +499,7 b' class filtervfs(abstractvfs, proxyvfs):' | |||||
499 |
|
499 | |||
500 | filteropener = filtervfs |
|
500 | filteropener = filtervfs | |
501 |
|
501 | |||
502 |
class readonlyvfs( |
|
502 | class readonlyvfs(proxyvfs): | |
503 | '''Wrapper vfs preventing any writing.''' |
|
503 | '''Wrapper vfs preventing any writing.''' | |
504 |
|
504 | |||
505 | def __init__(self, vfs): |
|
505 | def __init__(self, vfs): |
General Comments 0
You need to be logged in to leave comments.
Login now