From: Joel E. Denny Date: Sat, 12 Oct 2019 17:23:25 +0000 (+0000) Subject: [lit] Try errors="ignore" for decode introduced by r374665 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dadea982aa155e446b936566fdbd993bc16a71e1;p=llvm [lit] Try errors="ignore" for decode introduced by r374665 Still trying to fix the same error as in r374666. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374671 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/lit/lit/builtin_commands/diff.py b/utils/lit/lit/builtin_commands/diff.py index d851c4cb70d..c2ea5d86b9c 100644 --- a/utils/lit/lit/builtin_commands/diff.py +++ b/utils/lit/lit/builtin_commands/diff.py @@ -97,7 +97,7 @@ def compareTwoTextFiles(flags, filepaths, filelines_bin, encoding): n = flags.num_context_lines): if hasattr(diff, 'decode'): # python 2.7 - diff = diff.decode(errors="backslashreplace") + diff = diff.decode(errors="ignore") sys.stdout.write(diff) exitCode = 1 return exitCode