mirror of https://github.com/python/cpython
plug reference leak
This commit is contained in:
parent
1373a0781e
commit
c5f4e1ecfd
|
@ -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…
Reference in New Issue