mirror of
https://github.com/python/cpython.git
synced 2025-08-28 04:35:02 +00:00
Issue #20440: More use of Py_SETREF.
This patch is manually crafted and contains changes that couldn't be handled automatically.
This commit is contained in:
parent
4a1e70fc31
commit
191321d11b
7 changed files with 39 additions and 58 deletions
|
@ -14191,8 +14191,8 @@ unicode_format_arg_parse(struct unicode_formatter_t *ctx,
|
|||
if (key == NULL)
|
||||
return -1;
|
||||
if (ctx->args_owned) {
|
||||
Py_DECREF(ctx->args);
|
||||
ctx->args_owned = 0;
|
||||
Py_DECREF(ctx->args);
|
||||
}
|
||||
ctx->args = PyObject_GetItem(ctx->dict, key);
|
||||
Py_DECREF(key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue