Skip to content

Commit 41d2865

Browse files
yihong0618grayjk
andauthored
apply suggestion Lib/_pyrepl/utils.py
Co-authored-by: grayjk <[email protected]>
1 parent 07aa4bc commit 41d2865

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/_pyrepl/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ def str_width(c: str) -> int:
6464
if ord(c) < 128:
6565
return 1
6666
# gh-139246 for zero-width joiner and combining characters
67-
category = unicodedata.category(c)
6867
if unicodedata.combining(c):
6968
return 0
69+
category = unicodedata.category(c)
7070
if category == "Cf" and c != "\u00ad":
7171
return 0
7272
if "\u2028" <= c <= "\u2029":

0 commit comments

Comments
 (0)