Skip to content

Commit 8ffe4f4

Browse files
committed
oops, extend, not append
1 parent c1eef66 commit 8ffe4f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unpythonic/syntax/nb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def nb(body, args):
1515
with q as init:
1616
_ = None
1717
theprint = ast_literal[p]
18-
newbody.append(init)
18+
newbody.extend(init)
1919
for stmt in body:
2020
if type(stmt) is not Expr:
2121
newbody.append(stmt)

0 commit comments

Comments
 (0)