Skip to content

Commit 3fe9117

Browse files
authored
closes bpo-39803: Remove unused str from _PyLong_FormatAdvancedWriter. (pythonGH-18709)
1 parent 217dce9 commit 3fe9117

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Python/formatter_unicode.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -1458,7 +1458,7 @@ _PyLong_FormatAdvancedWriter(_PyUnicodeWriter *writer,
14581458
PyObject *format_spec,
14591459
Py_ssize_t start, Py_ssize_t end)
14601460
{
1461-
PyObject *tmp = NULL, *str = NULL;
1461+
PyObject *tmp = NULL;
14621462
InternalFormatSpec format;
14631463
int result = -1;
14641464

@@ -1511,7 +1511,6 @@ _PyLong_FormatAdvancedWriter(_PyUnicodeWriter *writer,
15111511

15121512
done:
15131513
Py_XDECREF(tmp);
1514-
Py_XDECREF(str);
15151514
return result;
15161515
}
15171516

0 commit comments

Comments
 (0)