projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d525107
)
fix bug in bucketstore read/write _attr
author
Rob Kinninmont
<robk@allmydata.com>
Fri, 1 Dec 2006 03:36:57 +0000
(20:36 -0700)
committer
Rob Kinninmont
<robk@allmydata.com>
Fri, 1 Dec 2006 03:36:57 +0000
(20:36 -0700)
allmydata/bucketstore.py
patch
|
blob
|
history
diff --git
a/allmydata/bucketstore.py
b/allmydata/bucketstore.py
index fcbc19a8174ac716a6507295f7eb9d44633c247a..bdbce44e3e27213bc76bdebe8d969e7e36cbee9f 100644
(file)
--- a/
allmydata/bucketstore.py
+++ b/
allmydata/bucketstore.py
@@
-83,12
+83,12
@@
class Bucket:
self._write_attr('bucket_num', str(bucket_num))
def _write_attr(self, name, val):
- f = file(os.path.join(self._bucket_dir,
'name'
), 'wb')
+ f = file(os.path.join(self._bucket_dir,
name
), 'wb')
f.write(val)
f.close()
def _read_attr(self, name):
- f = file(os.path.join(self._bucket_dir,
'name'
), 'wb')
+ f = file(os.path.join(self._bucket_dir,
name
), 'wb')
data = f.read()
f.close()
return data