Skip to content

Commit 34decf3

Browse files
[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
1 parent e3299ab commit 34decf3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

clang/docs/tools/dump_ast_matchers.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@
66
import collections
77
import re
88
import os
9+
from urllib.request import urlopen
910

10-
try:
11-
from urllib.request import urlopen
12-
except ImportError:
13-
from urllib2 import urlopen
1411

1512
CLASS_INDEX_PAGE_URL = "https://clang.llvm.org/doxygen/classes.html"
1613
try:

0 commit comments

Comments
 (0)