Skip to content

Commit b3a722e

Browse files
committed
Assign the correct object to sys.stdout and sys.stderr.
1 parent bc58eaa commit b3a722e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpython/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,8 +1659,8 @@ def main_curses(scr, args, config, interactive=True, locals_=None,
16591659
clirepl._C = cols
16601660

16611661
sys.stdin = FakeStdin(repl)
1662-
sys.stdout = repl
1663-
sys.stderr = repl
1662+
sys.stdout = clirepl
1663+
sys.stderr = clirepl
16641664

16651665
if args:
16661666
bpython.args.exec_code(interpreter, args)

0 commit comments

Comments
 (0)