]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
closes bpo-39803: Remove unused str from _PyLong_FormatAdvancedWriter. (GH-18709)
authorAndy Lester <andy@petdance.com>
Sun, 1 Mar 2020 21:26:43 +0000 (15:26 -0600)
committerGitHub <noreply@github.com>
Sun, 1 Mar 2020 21:26:43 +0000 (13:26 -0800)
Python/formatter_unicode.c

index 41a2478e0a817702b18689d32f8444d5a54c4fa4..705e12dd446da007c6be23f2e14de1412cb7b8c9 100644 (file)
@@ -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;
 }