Blob Blame History Raw
From c3993b1bd0a1b20c40b35c332309307fea92895c Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Wed, 29 Jul 2020 10:44:45 +0200
Subject: [PATCH] Make icutrim.py Python 2 compatible

Signed-off-by: rpm-build <rpm-build>
---
 tools/icu/icutrim.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/icu/icutrim.py b/tools/icu/icutrim.py
index f857e73..9996038 100755
--- a/tools/icu/icutrim.py
+++ b/tools/icu/icutrim.py
@@ -316,7 +316,7 @@ def removeList(count=0):
             erritems = fi.readlines()
             fi.close()
             #Item zone/zh_Hant_TW.res depends on missing item zone/zh_Hant.res
-            pat = re.compile(bytes(r"^Item ([^ ]+) depends on missing item ([^ ]+).*", 'utf-8'))
+            pat = re.compile(r"^Item ([^ ]+) depends on missing item ([^ ]+).*".encode('utf-8'))
             for i in range(len(erritems)):
                 line = erritems[i].strip()
                 m = pat.match(line)
-- 
2.26.2