mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
gh-116437: Use new C API PyDict_Pop() to simplify the code (GH-116438)
This commit is contained in:
parent
882fcede83
commit
72d3cc94cd
15 changed files with 116 additions and 119 deletions
|
|
@ -17566,11 +17566,11 @@ posixmodule_exec(PyObject *m)
|
|||
return -1;
|
||||
}
|
||||
|
||||
if (PyDict_DelItemString(dct, "pwritev") == -1) {
|
||||
PyErr_Clear();
|
||||
if (PyDict_PopString(dct, "pwritev", NULL) < 0) {
|
||||
return -1;
|
||||
}
|
||||
if (PyDict_DelItemString(dct, "preadv") == -1) {
|
||||
PyErr_Clear();
|
||||
if (PyDict_PopString(dct, "preadv", NULL) < 0) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue