From 75f4033050eb3c07c18ae329acbc18c8aac17cac Mon Sep 17 00:00:00 2001 From: Andy Lester Date: Sat, 29 Feb 2020 13:21:15 -0600 Subject: [PATCH] Remove unused str variable --- Python/formatter_unicode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c index 41a2478e0a8177..705e12dd446da0 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; }