for constraint_string in constraint_strings:
toks = constraint_string.split()
if len(toks) == 1:
- value = float(toks[0]) if use_float else int(toks[0])
- numbers_or.add(value)
- elif len(toks) == 2:
+ tok = toks[0]
+ if tok[0] in '<>!':
+ if '=' == tok[1]:
+ toks = [tok[:2], tok[2:]]
+ else:
+ toks = [tok[:1], tok[1:]]
+ else:
+ value = float(tok) if use_float else int(tok)
+ numbers_or.add(value)
+ if len(toks) == 2:
value = float(toks[1]) if use_float else int(toks[1])
if toks[0] == '!=':
unequal.add(value)