Skip to content

Commit bc1916b

Browse files
ocurerosebastinas
authored andcommitted
fixes #841
1 parent 8b728d9 commit bc1916b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def exec_code(interpreter, args):
202202
spec = importlib.util.spec_from_loader("__console__", loader=None)
203203
mod = importlib.util.module_from_spec(spec)
204204
sys.modules["__console__"] = mod
205-
interpreter.locals = mod.__dict__
205+
interpreter.locals.update(mod.__dict__)
206206
interpreter.locals["__file__"] = args[0]
207207
interpreter.runsource(source, args[0], "exec")
208208
sys.argv = old_argv

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy