mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
closes bpo-39803: Remove unused str from _PyLong_FormatAdvancedWriter. (GH-18709)
This commit is contained in:
parent
217dce9ee6
commit
3fe9117779
1 changed files with 1 additions and 2 deletions
|
@ -1458,7 +1458,7 @@ _PyLong_FormatAdvancedWriter(_PyUnicodeWriter *writer,
|
||||||
PyObject *format_spec,
|
PyObject *format_spec,
|
||||||
Py_ssize_t start, Py_ssize_t end)
|
Py_ssize_t start, Py_ssize_t end)
|
||||||
{
|
{
|
||||||
PyObject *tmp = NULL, *str = NULL;
|
PyObject *tmp = NULL;
|
||||||
InternalFormatSpec format;
|
InternalFormatSpec format;
|
||||||
int result = -1;
|
int result = -1;
|
||||||
|
|
||||||
|
@ -1511,7 +1511,6 @@ _PyLong_FormatAdvancedWriter(_PyUnicodeWriter *writer,
|
||||||
|
|
||||||
done:
|
done:
|
||||||
Py_XDECREF(tmp);
|
Py_XDECREF(tmp);
|
||||||
Py_XDECREF(str);
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue