]> granicus.if.org Git - python/commitdiff
Revert part of dbf72357cb4a that is in a rarely used path and causes
authorStefan Krah <skrah@bytereef.org>
Sat, 7 Jan 2017 23:08:53 +0000 (00:08 +0100)
committerStefan Krah <skrah@bytereef.org>
Sat, 7 Jan 2017 23:08:53 +0000 (00:08 +0100)
maintenance issues (cost/benefit).

Modules/_decimal/_decimal.c

index 1c34ba062bd519f5f8722d8088f5ed84620e42bc..846b2a834013bd2e0413788bb70e304854fc7fac 100644 (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;