Skip to content

Commit 8bde6aa

Browse files
committed
fix: apply suggestion
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
1 parent 41d2865 commit 8bde6aa

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

Lib/_pyrepl/utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ def str_width(c: str) -> int:
6969
category = unicodedata.category(c)
7070
if category == "Cf" and c != "\u00ad":
7171
return 0
72-
if "\u2028" <= c <= "\u2029":
73-
return 0
7472
w = unicodedata.east_asian_width(c)
7573
if w in ("N", "Na", "H", "A"):
7674
return 1

Lib/test/test_pyrepl/test_utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ def test_str_width(self):
2323
zero_width_characters = [
2424
'\N{COMBINING ACUTE ACCENT}',
2525
'\N{ZERO WIDTH JOINER}',
26-
'\u2028',
27-
'\u2029',
2826
]
2927
for c in zero_width_characters:
3028
with self.subTest(character=c):

0 commit comments

Comments
 (0)