llvm.org GIT mirror llvm / 7633906
Python compat - decode/encode string Differential Revision: https://reviews.llvm.org/D56258 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350320 91177308-0d34-0410-b5e6-96231b3b80d8 Serge Guelton 7 months ago
1 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
7171 file_text = stream.read()
7272
7373 if self.no_highlight:
74 html_highlighted = file_text.decode('utf-8')
74 if sys.version_info.major >= 3:
75 html_highlighted = file_text
76 else:
77 html_highlighted = file_text.decode('utf-8')
7578 else:
7679 html_highlighted = highlight(
7780 file_text,