Skip to content

Commit da4c9ed

Browse files
committed
fix bug: splice correctly in do[] (now ExpandedDoView should work correctly)
1 parent ad5d20b commit da4c9ed

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

unpythonic/syntax/letdo.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,9 @@ def find_localdefs(tree, collect, **kw):
296296
lines.append(expr)
297297
# CAUTION: letdoutil.py depends on the literal name "dof" to detect expanded do forms.
298298
# Also, the views depend on the exact AST structure.
299-
return hq[dof(ast_literal[lines])]
299+
thecall = hq[dof()]
300+
thecall.args = lines
301+
return thecall
300302

301303
@macro_stub
302304
def local(*args, **kwargs):

0 commit comments

Comments
 (0)