mirror of https://github.com/python/cpython.git
Revert part of dbf72357cb4a that is in a rarely used path and causes
maintenance issues (cost/benefit).
This commit is contained in:
parent
2b938f84f4
commit
45ed522237
|
@ -428,7 +428,7 @@ dict_as_flags(PyObject *val)
|
|||
return DEC_INVALID_SIGNALS;
|
||||
}
|
||||
|
||||
if (PyDict_GET_SIZE(val) != SIGNAL_MAP_LEN) {
|
||||
if (PyDict_Size(val) != SIGNAL_MAP_LEN) {
|
||||
PyErr_SetString(PyExc_KeyError,
|
||||
"invalid signal dict");
|
||||
return DEC_INVALID_SIGNALS;
|
||||
|
|
Loading…
Reference in New Issue