def __init__(self, path, ignoreErrors=True):
        """Create an instance of *ZipReader* serving a ZIP archive.

           Args:
               path (str): path to ZIP archive containing MIB files

           Keyword Args:
               ignoreErrors (bool): ignore ZIP archive access errors
        """
        self._name = path
        self._members = {}
        self._pendingError = None

        try:
            self._members = self._readZipDirectory(fileObj=open(path, 'rb'))

        except Exception:
            debug.logger & debug.flagReader and debug.logger(
                'ZIP file %s open failure: %s' % (self._name, sys.exc_info()[1]))

            if not ignoreErrors:
                self._pendingError = error.PySmiError('file %s access error: %s' % (self._name, sys.exc_info()[1]))
def __init__ ( self , path , ignoreErrors = True ) : self . _name = path self . _members = { } self . _pendingError = None try : self . _members = self . _readZipDirectory ( fileObj = open ( path , 'rb' ) ) except Exception : debug . logger & debug . flagReader and debug . logger ( 'ZIP file %s open failure: %s' % ( self . _name , sys . exc_info ( ) [ 1 ] ) ) if not ignoreErrors : self . _pendingError = error . PySmiError ( 'file %s access error: %s' % ( self . _name , sys . exc_info ( ) [ 1 ] ) )
Create an instance of *ZipReader* serving a ZIP archive.

           Args:
               path (str): path to ZIP archive containing MIB files

           Keyword Args:
               ignoreErrors (bool): ignore ZIP archive access errors