(fxn)
return _requires_frozen_wrapper
Decorator to verify the named module is frozen.
Decorator to verify the named module is frozen.
Decorator to verify the named module is frozen .
def _requires_frozen(fxn):
    """Decorator to verify the named module is frozen."""
    def _requires_frozen_wrapper(self, fullname):
        if not _imp.is_frozen(fullname):
            raise ImportError('{!r} is not a frozen module'.format(fullname),
                              name=fullname)
        return fxn(self, fullname)
    _wrap(_requires_frozen_wrapper, fxn)
    return _requires_frozen_wrapper
def _requires_frozen ( fxn ) : def _requires_frozen_wrapper ( self , fullname ) : if not _imp . is_frozen ( fullname ) : raise ImportError ( '{!r} is not a frozen module' . format ( fullname ) , name = fullname ) return fxn ( self , fullname ) _wrap ( _requires_frozen_wrapper , fxn ) return _requires_frozen_wrapper