Skip to content

Commit fbaab17

Browse files
dschonewren
authored andcommitted
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 <[email protected]>
1 parent e0a3df8 commit fbaab17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/filter-repo-demos/lint-history

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def lint_with_real_filenames(commit, metadata):
114114
f.write(contents_plus_newline[:-1])
115115

116116
# Lint the file
117-
subprocess.check_call(lint_args.command + [filename])
117+
subprocess.check_call(lint_args.command + [filename.decode('utf-8')])
118118

119119
# Get the new contents
120120
with open(filename, "rb") as f:

0 commit comments

Comments
 (0)