Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e75faff

Browse filesBrowse files
mhdawsonruyadorno
authored andcommitted
tools: allow icutrim.py to run on python2
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>
1 parent 7c51457 commit e75faff
Copy full SHA for e75faff

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎tools/icu/icutrim.py‎

Copy file name to clipboardExpand all lines: tools/icu/icutrim.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def removeList(count=0):
316316
erritems = fi.readlines()
317317
fi.close()
318318
#Item zone/zh_Hant_TW.res depends on missing item zone/zh_Hant.res
319-
pat = re.compile(bytes(r"^Item ([^ ]+) depends on missing item ([^ ]+).*", 'utf-8'))
319+
pat = re.compile(br"^Item ([^ ]+) depends on missing item ([^ ]+).*")
320320
for i in range(len(erritems)):
321321
line = erritems[i].strip()
322322
m = pat.match(line)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.