Skip to content

Commit 90b6461

Browse files
committed
Python: Also fix (value, key) bug in old parser
1 parent 91d4cf6 commit 90b6461

File tree

1 file changed

+1
-1
lines changed
  • python/extractor/semmle/python/parser

1 file changed

+1
-1
lines changed

python/extractor/semmle/python/parser/ast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1432,7 +1432,7 @@ def rewrite_comp(node):
14321432
elt = node.elt
14331433
del node.elt
14341434
else:
1435-
elt = ast.Tuple([node.value, node.key], LOAD)
1435+
elt = ast.Tuple([node.key, node.value], LOAD)
14361436
elt.lineno = node.key.lineno
14371437
elt.col_offset = node.key.col_offset
14381438
elt._end = node.value._end

0 commit comments

Comments
 (0)