mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-110093: Replace trivial Py_BuildValue() with direct C API call (GH-110094)
This commit is contained in:
parent
ff4e53cb74
commit
59ea0f523e
13 changed files with 33 additions and 32 deletions
|
@ -657,7 +657,7 @@ signal_strsignal_impl(PyObject *module, int signalnum)
|
|||
Py_RETURN_NONE;
|
||||
#endif
|
||||
|
||||
return Py_BuildValue("s", res);
|
||||
return PyUnicode_FromString(res);
|
||||
}
|
||||
|
||||
#ifdef HAVE_SIGINTERRUPT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue