Revert part of dbf72357cb4a that is in a rarely used path and causes

maintenance issues (cost/benefit).
This commit is contained in:
Stefan Krah 2017-01-08 00:08:53 +01:00
parent 2b938f84f4
commit 45ed522237
1 changed files with 1 additions and 1 deletions

View File

@ -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;