Example #1
0
 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)
Example #2
0
    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)
Example #3
0
 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)
Example #4
0
    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)