Commit 6debf8d3 authored by James Polley's avatar James Polley

Expand the range of valid operators to include comparators

parent 1f7177fc
......@@ -1489,6 +1489,10 @@ class MarkerEvaluation(object):
'in': lambda x, y: x in y,
'==': operator.eq,
'!=': operator.ne,
'<': operator.lt,
'>': operator.gt,
'<=': operator.le,
'>=': operator.ge,
}
if hasattr(symbol, 'or_test'):
ops[symbol.or_test] = cls.test
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment