]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
fix another read_attr bug
authorRob Kinninmont <robk@allmydata.com>
Fri, 1 Dec 2006 03:49:07 +0000 (20:49 -0700)
committerRob Kinninmont <robk@allmydata.com>
Fri, 1 Dec 2006 03:49:07 +0000 (20:49 -0700)
allmydata/bucketstore.py

index f1b811ffc2dcb23c18194546b29a4cc7da74d087..cbb56c165355c45b31068aeec051ec271fca3da1 100644 (file)
@@ -88,7 +88,7 @@ class Bucket:
         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), 'rb')
         data = f.read()
         f.close()
         return data