def open(self):
        assert not self._file, "archive already open"
        try:
            self._file = zipfile.ZipFile(self.filename, 'r')
        except Exception, e:
            raise PgxnClientException(
                _("cannot open archive '%s': %s") % (self.filename, e))
dataset/ETHPy150Open dvarrazzo/pgxnclient/pgxnclient/zip.py/ZipArchive.open/original