From: Stefan Krah Date: Sat, 7 Jan 2017 23:08:53 +0000 (+0100) Subject: Revert part of dbf72357cb4a that is in a rarely used path and causes X-Git-Tag: v3.7.0a1~1611 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45ed522237e16cf199cfd7faaa75ff3381f94b9c;p=python Revert part of dbf72357cb4a that is in a rarely used path and causes maintenance issues (cost/benefit). --- diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c index 1c34ba062b..846b2a8340 100644 --- a/Modules/_decimal/_decimal.c +++ b/Modules/_decimal/_decimal.c @@ -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;