From fbaab1704c3ec2ab3f3891736036a313d54b81a5 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 30 Mar 2021 22:47:26 +0200 Subject: [PATCH] lint-history: do decode bytes This fixes the "TypeError: a bytes-like object is required, not 'str'" problem on Windows, letting t9391 pass. Signed-off-by: Johannes Schindelin --- contrib/filter-repo-demos/lint-history | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/filter-repo-demos/lint-history b/contrib/filter-repo-demos/lint-history index 4ec34ed..5b45b7e 100755 --- a/contrib/filter-repo-demos/lint-history +++ b/contrib/filter-repo-demos/lint-history @@ -114,7 +114,7 @@ def lint_with_real_filenames(commit, metadata): f.write(contents_plus_newline[:-1]) # Lint the file - subprocess.check_call(lint_args.command + [filename]) + subprocess.check_call(lint_args.command + [filename.decode('utf-8')]) # Get the new contents with open(filename, "rb") as f: