Skip to content

Commit

Permalink
fix required locals
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Peter committed Mar 17, 2024
1 parent af3fe0a commit 281be2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spyder_kernels/customize/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def exec_encapsulate_locals(
exec_fun = exec
if filename is None:
filename = "<stdin>"
exec_fun(compile(code_ast, filename, "exec"), globals)
exec_fun(compile(code_ast, filename, "exec"), globals, None)
finally:
if use_locals_hack:
# Cleanup code
Expand Down

0 comments on commit 281be2b

Please sign in to comment.