Adjust to deprecated validation functions
- The "svalid" functions (e.g. svalid_value) have been deprecated. The
new method is to use the corresponding "valid" function (e.g.
valid_value).
- Also, valid_range now takes lower and upper args (vs. the old
"<lower>..<upper>" string).
Change-Id: Ib554b4991c8a2ef8925380003941e355aa5cadd6
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/func_timer.py b/lib/func_timer.py
index ef837ef..1919c3e 100644
--- a/lib/func_timer.py
+++ b/lib/func_timer.py
@@ -201,7 +201,8 @@
if self.__time_out is not None:
self.__time_out = int(self.__time_out)
# Ensure that time_out is non-negative.
- message = gv.svalid_range(self.__time_out, [0], "time_out")
+ message = gv.valid_range(self.__time_out, 0,
+ var_name="time_out")
if message != "":
raise ValueError("\n"
+ gp.sprint_error_report(message,