summaryrefslogtreecommitdiff
path: root/obnamlib/plugins/fuse_plugin.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-02-23 19:04:25 +0000
committerLars Wirzenius <liw@liw.fi>2014-02-23 19:04:25 +0000
commit9b0f6e678bbe6723fc809701e71dc923eddc5d65 (patch)
treeabe610f6e75bd80da5c9f01d3179f2cb35e3954e /obnamlib/plugins/fuse_plugin.py
parent68c280c5bf1cf8d6330280b188ed73c333dc9403 (diff)
downloadobnam-9b0f6e678bbe6723fc809701e71dc923eddc5d65.tar.gz
Move __init__ to top of class
Diffstat (limited to 'obnamlib/plugins/fuse_plugin.py')
-rw-r--r--obnamlib/plugins/fuse_plugin.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/obnamlib/plugins/fuse_plugin.py b/obnamlib/plugins/fuse_plugin.py
index e6800f20..82a2d98b 100644
--- a/obnamlib/plugins/fuse_plugin.py
+++ b/obnamlib/plugins/fuse_plugin.py
@@ -199,6 +199,17 @@ class ObnamFuse(fuse.Fuse):
MAX_METADATA_CACHE = 512
+ def __init__(self, *args, **kw):
+ self.obnam = kw['obnam']
+ ObnamFuseFile.fs = self
+ self.file_class = ObnamFuseFile
+ self.metadatacache = {}
+ self.sizecache = {}
+ self.rootlist = None
+ self.rootstat = None
+ self.init_root()
+ fuse.Fuse.__init__(self, *args, **kw)
+
def root_refresh(self):
tracing.trace('called')
@@ -295,17 +306,6 @@ class ObnamFuse(fuse.Fuse):
self.rootstat, self.rootlist = self.multiple_root_list(generations)
tracing.trace('multiple rootlist=%r', self.rootlist)
- def __init__(self, *args, **kw):
- self.obnam = kw['obnam']
- ObnamFuseFile.fs = self
- self.file_class = ObnamFuseFile
- self.metadatacache = {}
- self.sizecache = {}
- self.rootlist = None
- self.rootstat = None
- self.init_root()
- fuse.Fuse.__init__(self, *args, **kw)
-
def getattr(self, path):
try:
if path.count('/') == 1: