From 27eb975411618bd173db9969a3a11ae9d32fab2b Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Thu, 16 Jun 2016 06:27:45 -0500 Subject: [PATCH] Properly unpack stdout and stdin subprocess.Popen#communicate returns (stdout, stdin) but we were only unpacking stdout from it causing an exception. --- flake8/main/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake8/main/git.py b/flake8/main/git.py index 3160a26..c9b7dad 100644 --- a/flake8/main/git.py +++ b/flake8/main/git.py @@ -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)