diff options
author | Victor Stinner <vstinner@python.org> | 2020-10-27 16:12:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-27 16:12:53 (GMT) |
commit | 37834136d0afe51d274bfc79d8705514cbe73727 (patch) | |
tree | 0e4c6b1f42813363f690e7ad179874d727d2cd79 /Modules/_zoneinfo.c | |
parent | a6879d9445f98833c4e300e187956e2a218a2315 (diff) | |
download | cpython-37834136d0afe51d274bfc79d8705514cbe73727.zip cpython-37834136d0afe51d274bfc79d8705514cbe73727.tar.gz cpython-37834136d0afe51d274bfc79d8705514cbe73727.tar.bz2 |
bpo-42161: Modules/ uses _PyLong_GetZero() and _PyLong_GetOne() (GH-22998)
Use _PyLong_GetZero() and _PyLong_GetOne() in Modules/ directory.
_cursesmodule.c and zoneinfo.c are now built with
Py_BUILD_CORE_MODULE macro defined.
Diffstat (limited to 'Modules/_zoneinfo.c')
-rw-r--r-- | Modules/_zoneinfo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_zoneinfo.c b/Modules/_zoneinfo.c index 76b667d..7888cf8 100644 --- a/Modules/_zoneinfo.c +++ b/Modules/_zoneinfo.c @@ -1,4 +1,5 @@ #include "Python.h" +#include "pycore_long.h" // _PyLong_GetOne() #include "structmember.h" #include <ctype.h> @@ -585,7 +586,7 @@ zoneinfo_fromutc(PyObject *obj_self, PyObject *dt) } dt = NULL; - if (!PyDict_SetItemString(kwargs, "fold", _PyLong_One)) { + if (!PyDict_SetItemString(kwargs, "fold", _PyLong_GetOne())) { dt = PyObject_Call(replace, args, kwargs); } |