diff options
author | Andy Lester <andy@petdance.com> | 2020-03-01 21:26:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-01 21:26:43 (GMT) |
commit | 3fe9117779f0c75f7a0c3d7748c5bf281fbc1e4c (patch) | |
tree | 56cb52026544d000a9477951cfc6dd790845bfac /Python/formatter_unicode.c | |
parent | 217dce9ee6e3cf27a0cedbe1e4a6455776373ec2 (diff) | |
download | cpython-3fe9117779f0c75f7a0c3d7748c5bf281fbc1e4c.zip cpython-3fe9117779f0c75f7a0c3d7748c5bf281fbc1e4c.tar.gz cpython-3fe9117779f0c75f7a0c3d7748c5bf281fbc1e4c.tar.bz2 |
closes bpo-39803: Remove unused str from _PyLong_FormatAdvancedWriter. (GH-18709)
Diffstat (limited to 'Python/formatter_unicode.c')
-rw-r--r-- | Python/formatter_unicode.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 @@ _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; } |