Properly unpack stdout and stdin

subprocess.Popen#communicate returns (stdout, stdin) but we were only
unpacking stdout from it causing an exception.
This commit is contained in:
Ian Cordasco 2016-06-16 06:27:45 -05:00
parent a4b0793bf7
commit 27eb975411
No known key found for this signature in database
GPG key ID: 656D3395E4A9791A

View file

@ -169,7 +169,7 @@ def piped_process(command):
def git_config_for(parameter):
config = piped_process(['git', 'config', '--get', '--bool', parameter])
(stdout, ) = config.communicate()
(stdout, _) = config.communicate()
return to_text(stdout)