diff --git a/linters.py b/linters.py index f7b44d45..0e1f43ce 100644 --- a/linters.py +++ b/linters.py @@ -1241,7 +1241,8 @@ def process_files(self, files): stdout=subprocess.PIPE, stderr=subprocess.PIPE) - stdout, stderr = process.communicate(input='\0'.join(dirs)) + stdout, stderr = process.communicate( + input='\0'.join(dirs).encode('utf-8')) stdout, stderr = stdout.decode('utf-8'), stderr.decode('utf-8') # golangci-lint seems to exit 123 on errors, even if you tell it not to