From 3fe9117779f0c75f7a0c3d7748c5bf281fbc1e4c Mon Sep 17 00:00:00 2001 From: Andy Lester Date: Sun, 1 Mar 2020 15:26:43 -0600 Subject: closes bpo-39803: Remove unused str from _PyLong_FormatAdvancedWriter. (GH-18709) --- Python/formatter_unicode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Python/formatter_unicode.c') diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c index 41a2478e0a..705e12dd44 100644 --- a/Python/formatter_unicode.c +++ b/Python/formatter_unicode.c @@ -1458,7 +1458,7 @@ _PyLong_FormatAdvancedWriter(_PyUnicodeWriter *writer, 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 @@ _PyLong_FormatAdvancedWriter(_PyUnicodeWriter *writer, done: Py_XDECREF(tmp); - Py_XDECREF(str); return result; } -- cgit v1.2.1