mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
plug reference leak
This commit is contained in:
parent
1373a0781e
commit
c5f4e1ecfd
1 changed files with 1 additions and 1 deletions
|
|
@ -1668,7 +1668,7 @@ UnicodeTranslateError_str(PyObject *self)
|
|||
fmt = "can't translate character '\\u%04x' in position %zd: %U";
|
||||
else
|
||||
fmt = "can't translate character '\\U%08x' in position %zd: %U";
|
||||
return PyUnicode_FromFormat(
|
||||
result = PyUnicode_FromFormat(
|
||||
fmt,
|
||||
badchar,
|
||||
uself->start,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue