git: 4bd30588cf9b - 2026Q3 - japanese/mozc-server: Fix build with python 3.12 and later
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 14 Sep 2026 18:20:25 UTC
The branch 2026Q3 has been updated by ume:
URL: https://cgit.FreeBSD.org/ports/commit/?id=4bd30588cf9b14d6da96c9bb4e9de90a13dea14c
commit 4bd30588cf9b14d6da96c9bb4e9de90a13dea14c
Author: Hajimu UMEMOTO <ume@FreeBSD.org>
AuthorDate: 2026-09-14 17:15:03 +0000
Commit: Hajimu UMEMOTO <ume@FreeBSD.org>
CommitDate: 2026-09-14 18:19:32 +0000
japanese/mozc-server: Fix build with python 3.12 and later
(cherry picked from commit 4b7cbcc275ae33646e304909659de2d202dd0044)
Approved by: hrs
---
.../files/patch-src_prediction_gen__zero__query__data.py | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/japanese/mozc-server/files/patch-src_prediction_gen__zero__query__data.py b/japanese/mozc-server/files/patch-src_prediction_gen__zero__query__data.py
new file mode 100644
index 000000000000..b2d7778710a1
--- /dev/null
+++ b/japanese/mozc-server/files/patch-src_prediction_gen__zero__query__data.py
@@ -0,0 +1,11 @@
+--- src/prediction/gen_zero_query_data.py.orig 2020-08-14 17:09:18 UTC
++++ src/prediction/gen_zero_query_data.py
+@@ -72,7 +72,7 @@ def RemoveTrailingNumber(string):
+ def RemoveTrailingNumber(string):
+ if not string:
+ return b''
+- return re.sub(br'^([^0-9]+)[0-9]+$', r'\1', string)
++ return re.sub(br'^([^0-9]+)[0-9]+$', br'\1', string)
+
+
+ def GetReadingsFromDescription(description):