Skip to content

Commit e9b6e0c

Browse files
committed
fix imports: block and expr are macros
1 parent cec7009 commit e9b6e0c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

unpythonic/dialects/lispython.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ def transform_ast(self, tree): # tree is an ast.Module
3434
dlet, dletseq, dletrec,
3535
blet, bletseq, bletrec,
3636
local, delete, do, do0,
37-
let_syntax, abbrev,
37+
let_syntax, abbrev, block, expr,
3838
cond)
39-
# Auxiliary syntax elements for the macros.
40-
from unpythonic.syntax import block, expr # noqa: F401, F811
4139
from unpythonic import cons, car, cdr, ll, llist, nil, prod, dyn # noqa: F401, F811
4240
with autoreturn, quicklambda, multilambda, tco, namedlambda:
4341
__paste_here__ # noqa: F821, just a splicing marker.

unpythonic/syntax/tests/test_conts_gen.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
from ...syntax import macros, test # noqa: F401
2222
from ...test.fixtures import session, testset
2323

24-
from ...syntax import macros, continuations, call_cc, dlet, abbrev, let_syntax # noqa: F401, F811
25-
from ...syntax import block
24+
from ...syntax import macros, continuations, call_cc, dlet, abbrev, let_syntax, block # noqa: F401, F811
2625

2726
from ...fploop import looped
2827
from ...fun import identity

0 commit comments

Comments
 (0)