Skip to content

Commit

Permalink
transforms.asttyped_rewriter: set loc for ForT (fixes #302).
Browse files Browse the repository at this point in the history
whitequark committed Mar 1, 2016
1 parent 8fa98f6 commit dc70029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artiq/compiler/transforms/asttyped_rewriter.py
Original file line number Diff line number Diff line change
@@ -477,7 +477,7 @@ def visit_For(self, node):
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):

0 comments on commit dc70029

Please sign in to comment.