def new_func(*args,**kwargs): func_code = get_func_code(func_or_class) warn_explicit_onceperfamily(message, category = FutureWarning, filename = func_code.co_filename, lineno = func_code.co_firstlineno + 1) return func_or_class(*args,**kwargs)
def new_func(*args, **kwargs): func_code = get_func_code(func) message = "NotImplementedException: call to unimplemented "+\ "function %s in module %s line %s" % (func.__name__, func.__module__, func_code.co_firstlineno + 1) raise NotImplementedError(message)
def new_func(*args, **kwargs): func_code = get_func_code(func_or_class) warn_explicit_onceperfamily(message, category=FutureWarning, filename=func_code.co_filename, lineno=func_code.co_firstlineno + 1) return func_or_class(*args, **kwargs)
def new_func(*args,**kwargs): func_code = get_func_code(func) message = "NotImplementedException: call to unimplemented "+\ "function %s in module %s line %s" % (func.__name__, func.__module__, func_code.co_firstlineno + 1) raise NotImplementedError(message)