closes bpo-39803: Remove unused str from _PyLong_FormatAdvancedWriter. (GH-18709)
diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c
index 41a2478..705e12d 100644
--- a/Python/formatter_unicode.c
+++ b/Python/formatter_unicode.c
@@ -1458,7 +1458,7 @@
PyObject *format_spec,
Py_ssize_t start, Py_ssize_t end)
{
- PyObject *tmp = NULL, *str = NULL;
+ PyObject *tmp = NULL;
InternalFormatSpec format;
int result = -1;
@@ -1511,7 +1511,6 @@
done:
Py_XDECREF(tmp);
- Py_XDECREF(str);
return result;
}