summaryrefslogtreecommitdiff
path: root/obnamlib/plugins/fuse_plugin.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-02-23 18:17:34 +0000
committerLars Wirzenius <liw@liw.fi>2014-02-23 18:17:34 +0000
commitbd8700382e02ac4cfb3788d75da02738ee10667d (patch)
treeef9890574bb0567a896e3e696a0eaab23d1ad99f /obnamlib/plugins/fuse_plugin.py
parent6031e77e693bb02851737e3641076e559e8692d7 (diff)
downloadobnam-bd8700382e02ac4cfb3788d75da02738ee10667d.tar.gz
Get rid of helper variable
It is no longer used enough to warrant its existence.
Diffstat (limited to 'obnamlib/plugins/fuse_plugin.py')
-rw-r--r--obnamlib/plugins/fuse_plugin.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/obnamlib/plugins/fuse_plugin.py b/obnamlib/plugins/fuse_plugin.py
index 469ae23c..ab824e22 100644
--- a/obnamlib/plugins/fuse_plugin.py
+++ b/obnamlib/plugins/fuse_plugin.py
@@ -129,13 +129,11 @@ class ObnamFuseFile(object):
if length == 0 or offset >= self.metadata.st_size:
return ''
- repo = self.fs.obnam.repo
-
gen, repopath = self.fs.get_gen_path(self.path)
# The file's data content may be stored in the per-client B-tree.
# If so, we retrieve the data from there.
- contents = repo.get_file_data(gen, repopath)
+ contents = self.fs.obnam.repo.get_file_data(gen, repopath)
if contents is not None:
return contents[offset:offset+length]
@@ -153,12 +151,12 @@ class ObnamFuseFile(object):
# the chunk size was fixed, except for the last chunk for any
# file.
- chunkids = repo.get_file_chunks(gen, repopath)
+ chunkids = self.fs.obnam.repo.get_file_chunks(gen, repopath)
output = []
output_length = 0
chunk_pos_in_file = 0
for chunkid in chunkids:
- contents = repo.get_chunk(chunkid)
+ contents = self.fs.obnam.repo.get_chunk(chunkid)
if chunk_pos_in_file + len(contents) >= offset:
start = offset - chunk_pos_in_file
n = length - output_length