2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 11:30:23 +00:00

Add modulo support to expressions

Modulo support had been overlooked, it has been added back in.
This commit is contained in:
Jarrod Johnson 2014-02-20 09:51:15 -05:00
parent a68deebec8
commit bffa5feef8

View File

@ -228,6 +228,7 @@ class _ExpressionFormat(string.Formatter):
_supported_ops = {
ast.Mult: operator.mul,
ast.Div: operator.floordiv,
ast.Mod: operator.mod,
ast.Add: operator.add,
ast.Sub: operator.sub,
ast.LShift: operator.lshift,