Skip to content

Commit

Permalink
fix: removesuffix instead of rstrip
Browse files Browse the repository at this point in the history
  • Loading branch information
outloudvi committed Feb 17, 2021
1 parent 97bc191 commit 7121bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mw2fcitx/tweaks/moegirl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7121bff

Please sign in to comment.