def not26(func):
 @wraps(func)
 def errfunc(*args, **kwargs):
  raise NotImplementedError
 if (hexversion < 34013184):
  return errfunc
 else:
  return func

def not26 ( func ) : @ wraps ( func ) def errfunc ( * args , ** kwargs ) : raise NotImplementedError if ( hexversion < 34013184 ) : return errfunc else : return func
function decorator for methods not implemented in python 2 .