FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Assign the correct object to sys.stdout and sys.stderr. · bpython/bpython@b3a722e · GitHub

Commit b3a722e

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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎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)

Back | FazBrowse Home | New Git URL