diff options
author | Stefan Krah <skrah@bytereef.org> | 2017-01-07 23:08:53 (GMT) |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2017-01-07 23:08:53 (GMT) |
commit | 45ed522237e16cf199cfd7faaa75ff3381f94b9c (patch) | |
tree | 5836c66b811f9e52b24e9c5abd3150a861086e78 /Modules/_decimal | |
parent | 2b938f84f44a21d8b87ea1420d9f29ecbcd4a213 (diff) | |
download | cpython-45ed522237e16cf199cfd7faaa75ff3381f94b9c.zip cpython-45ed522237e16cf199cfd7faaa75ff3381f94b9c.tar.gz cpython-45ed522237e16cf199cfd7faaa75ff3381f94b9c.tar.bz2 |
Revert part of dbf72357cb4a that is in a rarely used path and causes
maintenance issues (cost/benefit).
Diffstat (limited to 'Modules/_decimal')
-rw-r--r-- | Modules/_decimal/_decimal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c index 1c34ba0..846b2a8 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; |