Skip to content

Commit c2eed93

Browse files
committed
[llvm][utils] Remove Python2 comaptaible import in unicode-case-fold.py
These imports got moved around in Python 3.0 (https://docs.python.org/3/whatsnew/3.0.html#library-changes). LLVM requires Python >= 3.8 so we can assume the Python3 names are available.
1 parent 4ae1233 commit c2eed93

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

llvm/utils/unicode-case-fold.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@
2121

2222
import sys
2323
import re
24-
25-
try:
26-
from urllib.request import urlopen
27-
except ImportError:
28-
from urllib2 import urlopen
24+
from urllib.request import urlopen
2925

3026

3127
# This variable will body of the mappings function

0 commit comments

Comments
 (0)