mirror of
https://github.com/python/cpython.git
synced 2025-08-27 20:25:18 +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:
commit
726fc139a5
8 changed files with 40 additions and 63 deletions
|
@ -14443,8 +14443,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