(funcname, func)
return wrapper
A simple wrapper to mark functions and methods as nonexistent.
A simple wrapper to mark functions and methods as nonexistent.
A simple wrapper to mark functions and methods as nonexistent .
def _nonexistent(funcname, func):
    """A simple wrapper to mark functions and methods as nonexistent."""
    def wrapper(*fargs, **kw):
        warnings.warn("%s does not exist" % funcname,
                      category=RuntimeWarning, stacklevel=2)
        return func(*fargs, **kw)
    wrapper.__name__ = func.__name__
    return wrapper
def _nonexistent ( funcname , func ) : def wrapper ( * fargs , * * kw ) : warnings . warn ( "%s does not exist" % funcname , category = RuntimeWarning , stacklevel = 2 ) return func ( * fargs , * * kw ) wrapper . __name__ = func . __name__ return wrapper