[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
This commit is contained in:
David Spickett 2025-10-31 09:46:36 +00:00 committed by GitHub
parent e3299ab5a2
commit 34decf3b2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: