summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/Python/getargs.c
diff options
context:
space:
mode:
authorshadchin <[email protected]>2024-10-27 10:52:33 +0300
committershadchin <[email protected]>2024-10-27 11:03:47 +0300
commit1529383373617c6d14ad4972afdc46a5eb35f954 (patch)
tree229b7647fafadd4ee4b93d20e606c534ad697365 /contrib/tools/python3/Python/getargs.c
parent41d598c624442bf6918407466dac3316b8277347 (diff)
Update Python 3 to 3.12.7
commit_hash:052a122399d67f1ea5dfbc5f6457e3e06200becf
Diffstat (limited to 'contrib/tools/python3/Python/getargs.c')
-rw-r--r--contrib/tools/python3/Python/getargs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/tools/python3/Python/getargs.c b/contrib/tools/python3/Python/getargs.c
index e7c2654f93a..0bba8b1d514 100644
--- a/contrib/tools/python3/Python/getargs.c
+++ b/contrib/tools/python3/Python/getargs.c
@@ -1964,7 +1964,8 @@ new_kwtuple(const char * const *keywords, int total, int pos)
Py_DECREF(kwtuple);
return NULL;
}
- PyUnicode_InternInPlace(&str);
+ PyInterpreterState *interp = _PyInterpreterState_GET();
+ _PyUnicode_InternImmortal(interp, &str);
PyTuple_SET_ITEM(kwtuple, i, str);
}
return kwtuple;