Skip to content

Commit

Permalink
should condition on python3
Browse files Browse the repository at this point in the history
  • Loading branch information
yinwang0 committed Nov 10, 2016
1 parent 46fbfa0 commit 6a13dd5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/resources/org/yinwang/pysonar/python/dump_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,6 @@ def convert_ops(ops, s, start):
Add: '+',
Sub: '-',
Mult: '*',
MatMult: '@',
Div: '/',
FloorDiv: '//',
Mod: '%',
Expand All @@ -582,6 +581,9 @@ def convert_ops(ops, s, start):
UAdd: '+',
}

if (python3):
ops_map[MatMult] = '@'


# get list of fields from a node
def node_fields(node):
Expand Down

0 comments on commit 6a13dd5

Please sign in to comment.