Author: bugman Date: Fri Aug 21 18:32:25 2009 New Revision: 9358 URL: http://svn.gna.org/viewcvs/relax?rev=9358&view=rev Log: Changed all the default can_be_none keywords to False. This is so you have to explicitly say if None is allowed, rather than the other way around. Modified: 1.3/prompt/check.py Modified: 1.3/prompt/check.py URL: http://svn.gna.org/viewcvs/relax/1.3/prompt/check.py?rev=9358&r1=9357&r2=9358&view=diff ============================================================================== --- 1.3/prompt/check.py (original) +++ 1.3/prompt/check.py Fri Aug 21 18:32:25 2009 @@ -46,7 +46,7 @@ raise RelaxBoolError(name, arg) -def is_float(arg, name, can_be_none=True): +def is_float(arg, name, can_be_none=False): """Test if the argument is a float. @param arg: The argument. @@ -75,7 +75,7 @@ raise RelaxNoneFloatError(name, arg) -def is_num_tuple(arg, name, size=None, can_be_none=True): +def is_num_tuple(arg, name, size=None, can_be_none=False): """Test if the argument is a tuple of numbers. @param arg: The argument. @@ -108,7 +108,7 @@ raise RelaxTupleNumError(name, arg) -def is_int(arg, name, can_be_none=True): +def is_int(arg, name, can_be_none=False): """Test if the argument is an integer. @param arg: The argument. @@ -137,7 +137,7 @@ raise RelaxNoneIntError(name, arg) -def is_str(arg, name, can_be_none=True): +def is_str(arg, name, can_be_none=False): """Test if the argument is a string. @param arg: The argument.