]> granicus.if.org Git - llvm/commitdiff
Revert r374665: "[lit] Try yet again to fix new tests that fail on Windows bots"
authorJoel E. Denny <jdenny.ornl@gmail.com>
Sat, 12 Oct 2019 18:51:18 +0000 (18:51 +0000)
committerJoel E. Denny <jdenny.ornl@gmail.com>
Sat, 12 Oct 2019 18:51:18 +0000 (18:51 +0000)
This series of patches still breaks a Windows bot.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374677 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/builtin_commands/diff.py

index ee933d8e59e8808bac5a497f7114012ad1d9bae7..f413f87425cfac7dd76b42b953a6e4438646a72a 100644 (file)
@@ -95,9 +95,6 @@ def compareTwoTextFiles(flags, filepaths, filelines_bin, encoding):
     func = difflib.unified_diff if flags.unified_diff else difflib.context_diff
     for diff in func(filelines[0], filelines[1], filepaths[0], filepaths[1],
                      n = flags.num_context_lines):
-        if hasattr(diff, 'decode'):
-            # python 2.7
-            diff = diff.decode()
         sys.stdout.write(diff)
         exitCode = 1
     return exitCode