(self, fullname)
return _get_data(self.archive, toc_entry).decode()
get_source(fullname) -> source string.

        Return the source code for the specified module. Raise ZipImportError
        if the module couldn't be found, return None if the archive does
        contain the module, but has no source for it.
get_source(fullname) -> source string.
get_source ( fullname ) - > source string .
def get_source(self, fullname):
        """get_source(fullname) -> source string.

        Return the source code for the specified module. Raise ZipImportError
        if the module couldn't be found, return None if the archive does
        contain the module, but has no source for it.
        """
        mi = _get_module_info(self, fullname)
        if mi is None:
            raise ZipImportError(f"can't find module {fullname!r}", name=fullname)

        path = _get_module_path(self, fullname)
        if mi:
            fullpath = _bootstrap_external._path_join(path, '__init__.py')
        else:
            fullpath = f'{path}.py'

        try:
            toc_entry = self._files[fullpath]
        except KeyError:
            # we have the module, but no source
            return None
        return _get_data(self.archive, toc_entry).decode()
def get_source ( self , fullname ) : mi = _get_module_info ( self , fullname ) if mi is None : raise ZipImportError ( f"can't find module {fullname!r}" , name = fullname ) path = _get_module_path ( self , fullname ) if mi : fullpath = _bootstrap_external . _path_join ( path , '__init__.py' ) else : fullpath = f'{path}.py' try : toc_entry = self . _files [ fullpath ] except KeyError : # we have the module, but no source return None return _get_data ( self . archive , toc_entry ) . decode ( )