summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2017-01-08 00:08:53 +0100
committerStefan Krah <skrah@bytereef.org>2017-01-08 00:08:53 +0100
commita3eb0f4c920e91c01c36451a5f4fc55a4124f698 (patch)
treef06014dd80e4fe17cf46505e46e97b9dcb1e20b6 /Modules
parent2161cfe5829f6b7eb6c657d0c13f3c8bd64bd90e (diff)
downloadcpython-a3eb0f4c920e91c01c36451a5f4fc55a4124f698.tar.gz
Revert part of dbf72357cb4a that is in a rarely used path and causes
maintenance issues (cost/benefit).
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_decimal/_decimal.c2
1 files changed, 1 insertions, 1 deletions
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;