-
Notifications
You must be signed in to change notification settings - Fork 32
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
Fix stdin test #3
Conversation
src/passff.py
Outdated
@@ -14,14 +14,14 @@ | |||
################################################################################ | |||
# Default command for MacOS: | |||
#command = "/usr/local/bin/pass" |
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.
Please uppercase command -> COMMAND
also in this line for Mac users.
'stdout': subprocess.PIPE, | ||
'stderr': subprocess.PIPE, | ||
'env': env | ||
} | ||
if 'stdin' is not None: |
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.
Ah, thanks 👍
Force-update done. |
This is not urgent, right? Because it's working for me even without this fix. |
Not urgent at all. I am sorry for the misunderstanding. If I'm correct, the code would always create a pipe for stdin, even when the code was not giving any input to Thanks for the merge 👍 |
This PR includes a fix of a typo in the code.
When editing, I noticed I could improve the code, thus the rewrite. Using run() is the recommended approach according to Python.org. It requires Python >= 3.5 (released in November 2015).
I have also renamed the pref variables to uppercase since they are constants.
This change highlights the difference between the pref variables &
the other variables in the code.