From 0aed9d15286f6482c677f816385809a4a5d65309 Mon Sep 17 00:00:00 2001 From: Rob Kinninmont Date: Thu, 30 Nov 2006 20:36:57 -0700 Subject: [PATCH] fix bug in bucketstore read/write _attr --- allmydata/bucketstore.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/allmydata/bucketstore.py b/allmydata/bucketstore.py index fcbc19a8..bdbce44e 100644 --- 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 -- 2.45.2