Fix UnicodeDecodeError in mach clean-nightlies

This commit is contained in:
Simon Sapin 2017-05-13 17:49:37 +02:00
parent dd38c0969d
commit 6a3864de5f

View file

@ -321,7 +321,7 @@ class MachCommands(CommandBase):
) )
stdout, _ = cmd.communicate() stdout, _ = cmd.communicate()
for line in stdout.splitlines(): for line in stdout.splitlines():
if line.startswith("+") and not line.startswith("+++"): if line.startswith(b"+") and not line.startswith(b"+++"):
to_keep[tool].add(line[1:]) to_keep[tool].add(line[1:])
removing_anything = False removing_anything = False