Skip to content
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

allow overriding sys.stderr before calling print_error #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jcristau
Copy link

@jcristau jcristau commented Dec 2, 2014

Scanner.print_line_with_pointer captures sys.stderr at definition time, meaning if it's changed later it'll still use the old one; fix that by looking for sys.stderr at each call.
Additionally, fixed stray print statements that lead to TypeError because the file imports print_function.

Signed-off-by: Julien Cristau <julien.cristau@logilab.fr>
Signed-off-by: Julien Cristau <julien.cristau@logilab.fr>
gentoo-bot pushed a commit to gentoo/gentoo that referenced this pull request Dec 22, 2015
Grabbed from smurfix/yapps#2

Package-Manager: portage-2.2.26
@jcristau
Copy link
Author

Ping.

@ralphm
Copy link

ralphm commented May 24, 2016

These changes look good to me. @smurfix: could you merge these changes and push a new version to PyPI?

@douardda
Copy link

any chance to get this merge (AND published on pypi) anytime soon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants