-
-
Notifications
You must be signed in to change notification settings - Fork 246
CLIRepl is missing isatty() method #149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Resolved since we do indeed have that object. Original Comment By: Simon de Vlieger |
Added in <<changeset 32a235b4aa01>>. Leaving the issue open as we still need a FakeStdout object. Original Comment By: Andreas Stührk |
I was always in favour of a FakeStdout object instead of randomly adding things to the repl object where they don't belong to at all. Original Comment By: Andreas Stührk |
If you do that, then it would be better to abstract a FakeStdout too, sys.stdout.isatty is also used in mercurial (and other apps) Original Comment By: Christopher Grebs |
I have previously added a isatty method to our FakeStdin object. Andreas, what do you think of adding it to CLIRepl too? Maybe we should abstract out a FakeStderr as well? Original Comment By: Simon de Vlieger |
Mercurial relies on the
isatty()
method on sys.stderr and sys.stdout for it's progress extension. Please add it to bpython.cli.CLIReplThanks!
The text was updated successfully, but these errors were encountered: