mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.13] gh-139646: fix typo in pickletools error message (GH-139647) (GH-139650)
(cherry picked from commit 36a6c2cdfa)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: yihong <zouzou0208@gmail.com>
This commit is contained in:
parent
ccf2f377fc
commit
94b26f015e
2 changed files with 5 additions and 5 deletions
|
|
@ -348,7 +348,7 @@ def read_stringnl(f, decode=True, stripquotes=True, *, encoding='latin-1'):
|
|||
for q in (b'"', b"'"):
|
||||
if data.startswith(q):
|
||||
if not data.endswith(q):
|
||||
raise ValueError("strinq quote %r not found at both "
|
||||
raise ValueError("string quote %r not found at both "
|
||||
"ends of %r" % (q, data))
|
||||
data = data[1:-1]
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue