[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:
parent
e3299ab5a2
commit
34decf3b2c
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user