summaryrefslogtreecommitdiffstats
path: root/Lib/_pyrepl/reader.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-07-14 09:02:46 (GMT)
committerGitHub <noreply@github.com>2024-07-14 09:02:46 (GMT)
commite28f863bd5c9f5df6780b17ebb9c3a35ed7fe01e (patch)
treee1a8a95b75251ed276624e1655b6df874815c582 /Lib/_pyrepl/reader.py
parente8594aadd5f8518f147944539c99efe126c20b35 (diff)
downloadcpython-e28f863bd5c9f5df6780b17ebb9c3a35ed7fe01e.zip
cpython-e28f863bd5c9f5df6780b17ebb9c3a35ed7fe01e.tar.gz
cpython-e28f863bd5c9f5df6780b17ebb9c3a35ed7fe01e.tar.bz2
[3.13] gh-121609: Fix pasting of characters containing unicode character joiner (GH-121667) (#121733)
Co-authored-by: Marta Gómez Macías <mgmacias@google.com>
Diffstat (limited to 'Lib/_pyrepl/reader.py')
-rw-r--r--Lib/_pyrepl/reader.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/_pyrepl/reader.py b/Lib/_pyrepl/reader.py
index 4431b6a..5d83ce4 100644
--- a/Lib/_pyrepl/reader.py
+++ b/Lib/_pyrepl/reader.py
@@ -58,7 +58,6 @@ def disp_str(buffer: str) -> tuple[str, list[int]]:
elif unicodedata.category(c).startswith("C"):
c = r"\u%04x" % ord(c)
s.append(c)
- b.append(str_width(c))
b.extend([0] * (len(c) - 1))
else:
s.append(c)