def _get_bucket_md(self, bucket):
        name = self._zf(bucket, MD_FILE)
        if not self.exists(bucket, MD_FILE):
            raise OFSFileNotFound
        if self.mode !="w":
            #z = ZipFile(self.zipfile, "r", self.compression, self.allowZip64)
            json_doc = self.z.read(name)
            #z.close()
            try:
                jsn = json.loads(json_doc)
                return jsn
            except __HOLE__:
                raise OFSException, "Cannot read metadata for %s" % bucket
        else:
            raise OFSException, "Cannot read from archive in 'w' mode"
dataset/ETHPy150Open okfn/ofs/ofs/local/zipstore.py/ZOFS._get_bucket_md