From c2eed93e20e078389bd42a2a2f4b6cbd16a70adb Mon Sep 17 00:00:00 2001 From: David Spickett Date: Thu, 16 Oct 2025 11:25:25 +0000 Subject: [PATCH] [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. --- llvm/utils/unicode-case-fold.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/llvm/utils/unicode-case-fold.py b/llvm/utils/unicode-case-fold.py index 9639aa0dc44b..4afb41d4060f 100755 --- a/llvm/utils/unicode-case-fold.py +++ b/llvm/utils/unicode-case-fold.py @@ -21,11 +21,7 @@ from __future__ import print_function import sys import re - -try: - from urllib.request import urlopen -except ImportError: - from urllib2 import urlopen +from urllib.request import urlopen # This variable will body of the mappings function