[llvm-bugs] [Bug 45119] New: [LLVM] [YAML] [Python 3.8] AttributeError: module 'cgi' has no attribute 'escape'

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 5 06:34:23 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=45119

            Bug ID: 45119
           Summary: [LLVM] [YAML] [Python 3.8] AttributeError: module
                    'cgi' has no attribute 'escape'
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: lonewolf at xs4all.nl
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

When trunk is built with python-yaml present, several llvm regression tests
fail.
If python-yaml is not present, no failure is reported.


cgi.escape has been deprecated since python 3.2 and was removed in python 3.8


from https://docs.python.org/3/whatsnew/3.8.html :

parse_qs, parse_qsl, and escape are removed from the cgi module. They are 
deprecated in Python 3.2 or older. They should be imported from the
urllib.parse and html modules instead.

Logs attached

-- 
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/20200305/2ea45b44/attachment.html>


More information about the llvm-bugs mailing list