Skip to content

Commit

Permalink
tools: allow icutrim.py to run on python2
Browse files Browse the repository at this point in the history
Refs: nodejs/build#2998

Small icu seems broken from 14.x since it uses
python2. Although main no longer supports python2
landing and backporting this change to the 14.x line would
allow us to simplify future backports as currently
the files are the same across lines.

Signed-off-by: Michael Dawson <mdawson@devrus.com>
PR-URL: #46263
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
mhdawson authored Jan 21, 2023
1 parent 97e54b8 commit 7ea2fc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/icu/icutrim.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(br"^Item ([^ ]+) depends on missing item ([^ ]+).*")
for i in range(len(erritems)):
line = erritems[i].strip()
m = pat.match(line)
Expand Down

0 comments on commit 7ea2fc8

Please sign in to comment.