[llvm-bugs] [Bug 47102] New: Make dump_ast_matchers.py work with python 3

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 10 21:42:49 PDT 2020


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

            Bug ID: 47102
           Summary: Make dump_ast_matchers.py work with python 3
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Documentation
          Assignee: unassignedclangbugs at nondot.org
          Reporter: zeratul976 at hotmail.com
                CC: llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

There is a script in the tree at clang/docs/tools/dump_ast_matchers.py which
regenerates the HTML documentation for AST matchers.

When I invoke the script with Python 3, I get the following exception:

Traceback (most recent call last):
  File "dump_ast_matchers.py", line 478, in <module>
    output.write(reference)
TypeError: a bytes-like object is required, not 'str'

Invoking the script with Python 2 works fine.

As Python 2 is end-of-life, the script should probably be ported to Python 3.

-- 
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/20200811/8a564378/attachment.html>


More information about the llvm-bugs mailing list