Skip to content

Commit 30506f5

Browse files
don't encode the file in "bpython file.py"
1 parent b30efb8 commit 30506f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bpython/args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,5 @@ def exec_code(interpreter, args):
119119
sys.modules['__console__'] = mod
120120
interpreter.locals = mod.__dict__
121121
interpreter.locals['__file__'] = args[0]
122-
interpreter.runsource(source, args[0], 'exec')
122+
interpreter.runsource(source, args[0], 'exec', False)
123123
sys.argv = old_argv

0 commit comments

Comments
 (0)