Skip to content

Commit 1f842bc

Browse files
committed
Correct some refs to compiler in result macros
1 parent 36400c4 commit 1f842bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hy/core/result_macros.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,7 @@ def compile_try_expression(compiler, expr, root, body, catchers, orelse, finalbo
14911491
# []
14921492
except_sym, exceptions, ebody = catcher
14931493
if not PY3_11 and except_sym == Symbol("except*"):
1494-
hy_compiler._syntax_error(except_sym, "`{}` requires Python 3.11 or later")
1494+
compiler._syntax_error(except_sym, "`{}` requires Python 3.11 or later")
14951495
except_syms_seen.add(str(except_sym))
14961496
if len(except_syms_seen) > 1:
14971497
raise compiler._syntax_error(
@@ -2042,7 +2042,7 @@ def compile_require(compiler, expr, root, entries):
20422042
def compile_import(compiler, expr, root, is_lazy, entries):
20432043

20442044
if not PY3_15 and is_lazy:
2045-
hy_compiler._syntax_error(is_lazy, "Lazy imports require Python 3.15 or later")
2045+
compiler._syntax_error(is_lazy, "Lazy imports require Python 3.15 or later")
20462046
is_lazy = dict(is_lazy = True) if is_lazy else {}
20472047

20482048
ret = Result()

0 commit comments

Comments
 (0)