[llvm-bugs] [Bug 47785] New: opt-viewer fails on Python 3.8
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Oct 9 13:33:56 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47785
Bug ID: 47785
Summary: opt-viewer fails on Python 3.8
Product: tools
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: opt-viewer
Assignee: unassignedbugs at nondot.org
Reporter: pctammela at gmail.com
CC: anemet at apple.com, llvm-bugs at lists.llvm.org
It seems cgi.escape was deprecated in 3.7 and removed in 3.8[1].
Error traceback:
```
Traceback (most recent call last):
File "opt-viewer.py", line 382, in <module>
main()
File "opt-viewer.py", line 371, in main
generate_report(all_remarks,
File "opt-viewer.py", line 287, in generate_report
IndexRenderer(output_dir, should_display_hotness,
max_hottest_remarks_on_index).render(sorted_remarks)
File "opt-viewer.py", line 235, in render
self.render_entry(remark, i % 2)
File "opt-viewer.py", line 203, in render_entry
escaped_name = cgi.escape(r.DemangledFunctionName)
```
[1] https://docs.python.org/3.8/library/cgi.html
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201009/a574fcdc/attachment.html>
More information about the llvm-bugs
mailing list