Author: David Spickett Date: 2025-10-31T09:46:36Z New Revision: 34decf3b2cad9b31162d47be65854d5dbe3f10db
URL: https://github.com/llvm/llvm-project/commit/34decf3b2cad9b31162d47be65854d5dbe3f10db DIFF: https://github.com/llvm/llvm-project/commit/34decf3b2cad9b31162d47be65854d5dbe3f10db.diff LOG: [clang][docs] Remove Python2 import handler in dump_ast_matchers.py (#163730) LLVM requires Python >=3.8 and in Python 3.0 urllib2 was renamed to urllib. https://docs.python.org/3/whatsnew/3.0.html#library-changes Added: Modified: clang/docs/tools/dump_ast_matchers.py Removed: ################################################################################ diff --git a/clang/docs/tools/dump_ast_matchers.py b/clang/docs/tools/dump_ast_matchers.py index 46b7bb718ba08..5db6826070934 100755 --- a/clang/docs/tools/dump_ast_matchers.py +++ b/clang/docs/tools/dump_ast_matchers.py @@ -6,11 +6,8 @@ import collections import re import os +from urllib.request import urlopen -try: - from urllib.request import urlopen -except ImportError: - from urllib2 import urlopen CLASS_INDEX_PAGE_URL = "https://clang.llvm.org/doxygen/classes.html" try: _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
