mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 10:36:53 +00:00
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:
parent
a4b0793bf7
commit
27eb975411
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue