Blame SOURCES/Make-icutrim.py-Python-2-compatible.patch

3f476a
From c3993b1bd0a1b20c40b35c332309307fea92895c Mon Sep 17 00:00:00 2001
3f476a
From: rpm-build <rpm-build>
3f476a
Date: Wed, 29 Jul 2020 10:44:45 +0200
3f476a
Subject: [PATCH] Make icutrim.py Python 2 compatible
3f476a
3f476a
Signed-off-by: rpm-build <rpm-build>
3f476a
---
3f476a
 tools/icu/icutrim.py | 2 +-
3f476a
 1 file changed, 1 insertion(+), 1 deletion(-)
3f476a
3f476a
diff --git a/tools/icu/icutrim.py b/tools/icu/icutrim.py
3f476a
index f857e73..9996038 100755
3f476a
--- a/tools/icu/icutrim.py
3f476a
+++ b/tools/icu/icutrim.py
3f476a
@@ -316,7 +316,7 @@ def removeList(count=0):
3f476a
             erritems = fi.readlines()
3f476a
             fi.close()
3f476a
             #Item zone/zh_Hant_TW.res depends on missing item zone/zh_Hant.res
3f476a
-            pat = re.compile(bytes(r"^Item ([^ ]+) depends on missing item ([^ ]+).*", 'utf-8'))
3f476a
+            pat = re.compile(r"^Item ([^ ]+) depends on missing item ([^ ]+).*".encode('utf-8'))
3f476a
             for i in range(len(erritems)):
3f476a
                 line = erritems[i].strip()
3f476a
                 m = pat.match(line)
3f476a
-- 
3f476a
2.26.2
3f476a