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

Do not warn about a BrokenPipeError we do consider - Fix #2622 #2631

Merged
merged 2 commits into from
Jul 22, 2017

Conversation

nathdwek
Copy link
Member

For some reason Python always warns about a BrokenPipeError on
stderr even if it is caught.

This should fix #2622 and seems pretty harmless, since stderr is systematically flushed by other error messages.
@Azphreal , could we get some feedback from your end before merging?

For some reason Python always warns about a BrokenPipeError on
stderr even if it is caught.

Fixes #2622
@mention-bot
Copy link

@nathdwek, thanks for your PR! By analyzing the history of the files in this pull request, we identified @sampsyo, @geigerzaehler and @brunal to be potential reviewers.

Copy link
Member

@sampsyo sampsyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks perfect! If @Azphreal confirms, this is ready to merge.

@xeals
Copy link

xeals commented Jul 18, 2017

Change does indeed fix the error.

Interestingly enough, the current version from git (which still used pass rather than closing stderr) didn't have the issue for me, which meant it'd probably been fixed (unintentionally or not) since 1.4.5.

@nathdwek
Copy link
Member Author

Mmmmh, that's weird, I can still reproduce this from the master branch.

@sampsyo
Copy link
Member

sampsyo commented Jul 18, 2017

That's strange! @Azphreal, any chance you unconsciously switched Python versions when trying the master branch? 😃

@xeals
Copy link

xeals commented Jul 21, 2017

Python version is still 3.5.2, so I don't think so.

@sampsyo
Copy link
Member

sampsyo commented Jul 21, 2017

Very strange. In any case, this looks like the right fix. I’ll leave it to you to merge if you think it’s ready, @nathdwek! 🐟 🚀

@nathdwek
Copy link
Member Author

@Azphreal could you keep your ear to the ground on this one? I'll merge and remain careful for weird things popping up.

@nathdwek nathdwek merged commit 6160fa8 into master Jul 22, 2017
@arcresu arcresu deleted the Fix-2622 branch April 24, 2019 05:03
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.

Broken pipe on piping list output on Python 3
4 participants