[llvm] r374676 - Revert r374666: "[lit] Adjust error handling for decode introduced by r374665"

Joel E. Denny via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 12 11:51:08 PDT 2019


Author: jdenny
Date: Sat Oct 12 11:51:08 2019
New Revision: 374676

URL: http://llvm.org/viewvc/llvm-project?rev=374676&view=rev
Log:
Revert r374666: "[lit] Adjust error handling for decode introduced by r374665"

This series of patches still breaks a Windows bot.

Modified:
    llvm/trunk/utils/lit/lit/builtin_commands/diff.py

Modified: llvm/trunk/utils/lit/lit/builtin_commands/diff.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/builtin_commands/diff.py?rev=374676&r1=374675&r2=374676&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/builtin_commands/diff.py (original)
+++ llvm/trunk/utils/lit/lit/builtin_commands/diff.py Sat Oct 12 11:51:08 2019
@@ -97,7 +97,7 @@ def compareTwoTextFiles(flags, filepaths
                      n = flags.num_context_lines):
         if hasattr(diff, 'decode'):
             # python 2.7
-            diff = diff.decode(errors="backslashreplace")
+            diff = diff.decode()
         sys.stdout.write(diff)
         exitCode = 1
     return exitCode




More information about the llvm-commits mailing list