[PATCH] D56258: python compat - encode/decode

Michael Platings via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 3 04:57:34 PST 2019


michaelplatings requested changes to this revision.
michaelplatings added inline comments.
This revision now requires changes to proceed.


================
Comment at: tools/opt-viewer/opt-viewer.py:75
         if self.no_highlight:
-            html_highlighted = file_text.decode('utf-8')
+            if sys.version_info.major == 3:
+                html_highlighted = file_text
----------------
May as well make this >= 3


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D56258/new/

https://reviews.llvm.org/D56258





More information about the llvm-commits mailing list