forked from M-Labs/artiq
1
0
Fork 0

transforms.asttyped_rewriter: set loc for ForT (fixes #302).

This commit is contained in:
whitequark 2016-03-01 05:22:12 +00:00
parent 8fa98f6486
commit dc70029b91
1 changed files with 1 additions and 1 deletions

View File

@ -477,7 +477,7 @@ class ASTTypedRewriter(algorithm.Transformer):
target=node.target, iter=node.iter, body=node.body, orelse=node.orelse,
trip_count=None, trip_interval=None,
keyword_loc=node.keyword_loc, in_loc=node.in_loc, for_colon_loc=node.for_colon_loc,
else_loc=node.else_loc, else_colon_loc=node.else_colon_loc)
else_loc=node.else_loc, else_colon_loc=node.else_colon_loc, loc=node.loc)
return node
def visit_withitem(self, node):