From 7121bff774ad51b702548d9dbcddbcd043305681 Mon Sep 17 00:00:00 2001 From: Outvi V Date: Thu, 18 Feb 2021 00:29:10 +0800 Subject: [PATCH] fix: removesuffix instead of rstrip --- mw2fcitx/tweaks/moegirl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mw2fcitx/tweaks/moegirl.py b/mw2fcitx/tweaks/moegirl.py index 763f0df..f438c73 100644 --- a/mw2fcitx/tweaks/moegirl.py +++ b/mw2fcitx/tweaks/moegirl.py @@ -61,7 +61,7 @@ def cb(items: [str]): ret = [] for i in items: for j in suffixes: - i = i.rstrip(j) + i = i.removesuffix(j) ret.append(i) return ret