-
Notifications
You must be signed in to change notification settings - Fork 86
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
Avoid python3 error with no stdin #460
Conversation
Great finding @mattaezell! I will review your patch ASAP. We should include the fix in 1.8.4. |
It's interesting. I can't find any documentation to explain when |
It's set to None here:
|
Ah! It is actually documented under Note: Under some conditions stdin, stdout and stderr as well as the original values stdin, stdout and stderr can be None. It is usually the case for Windows GUI apps that aren’t connected to a console and Python apps started with pythonw. |
17602f5
to
f96feed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks better :)
Under python3,
sys.stdin
isNone
if there is no stdin attached to the process:Originally reported at https://bugs.schedmd.com/show_bug.cgi?id=11021