[lldb] Fix another Python2/3 string<->bytes type error in patch-crashlog.py
authorRaphael Isemann <teemperor@gmail.com>
Thu, 19 Nov 2020 18:24:40 +0000 (19:24 +0100)
committerRaphael Isemann <teemperor@gmail.com>
Thu, 19 Nov 2020 18:24:40 +0000 (19:24 +0100)
lldb/test/Shell/ScriptInterpreter/Python/Crashlog/patch-crashlog.py

index 9616591..28396c5 100644 (file)
@@ -32,7 +32,7 @@ class CrashLogPatcher:
     def patch_addresses(self):
         if not self.offsets:
             return
-        output = subprocess.check_output(['nm', self.binary])
+        output = subprocess.check_output(['nm', self.binary]).decode("utf-8")
         for line in output.splitlines():
             m = self.SYMBOL_REGEX.match(line)
             if m: