From 1ca09b9e57be0be40a81d69e40049ff7b33c1051dd3f1a1747b46ecb85b74bc7 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 23 Apr 2025 20:30:01 +0000 Subject: [PATCH] - Remove upstreamed update-wcwidth.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ftfy?expand=0&rev=24 --- python-ftfy.changes | 1 + update-wcwidth.patch | 40 ---------------------------------------- 2 files changed, 1 insertion(+), 40 deletions(-) delete mode 100644 update-wcwidth.patch diff --git a/python-ftfy.changes b/python-ftfy.changes index 9c9084c..21278be 100644 --- a/python-ftfy.changes +++ b/python-ftfy.changes @@ -2,6 +2,7 @@ Wed Apr 23 20:26:25 UTC 2025 - Matej Cepl - Add python-ftfy.rpmlintrc properly. +- Remove upstreamed update-wcwidth.patch ------------------------------------------------------------------- Wed Apr 23 15:11:54 UTC 2025 - Felix Stegmeier diff --git a/update-wcwidth.patch b/update-wcwidth.patch deleted file mode 100644 index 05e44ba..0000000 --- a/update-wcwidth.patch +++ /dev/null @@ -1,40 +0,0 @@ -From 5d975c6bb1836d4a1abf0e44675a08f1a9321be9 Mon Sep 17 00:00:00 2001 -From: Elia Robyn Lake -Date: Tue, 21 Nov 2023 18:40:17 -0500 -Subject: [PATCH] update wcwidth - ---- - ftfy/formatting.py | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -Index: python-ftfy-6.0.3/ftfy/formatting.py -=================================================================== ---- python-ftfy-6.0.3.orig/ftfy/formatting.py -+++ python-ftfy-6.0.3/ftfy/formatting.py -@@ -28,7 +28,7 @@ def character_width(char: str) -> int: - >>> character_width('\n') - -1 - """ -- return wcwidth(char) -+ return int(wcwidth(char)) - - - def monospaced_width(text: str) -> int: -@@ -47,7 +47,7 @@ def monospaced_width(text: str) -> int: - >>> len('ちゃぶ台返し') - 6 - >>> monospaced_width('owl\N{SOFT HYPHEN}flavored') -- 12 -+ 11 - >>> monospaced_width('example\x80') - -1 - -@@ -70,7 +70,7 @@ def monospaced_width(text: str) -> int: - # - # Remove terminal escapes before calculating width, because if they are - # displayed as intended, they will have zero width. -- return wcswidth(remove_terminal_escapes(normalize('NFC', text))) -+ return int(wcswidth(remove_terminal_escapes(normalize("NFC", text)))) - - - def display_ljust(text, width, fillchar=' '):