diff options
author | Stefan Krah <skrah@bytereef.org> | 2017-01-07 23:02:15 (GMT) |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2017-01-07 23:02:15 (GMT) |
commit | 2b938f84f44a21d8b87ea1420d9f29ecbcd4a213 (patch) | |
tree | 77b8206d8d886be36617e321be63cc2687a86838 | |
parent | 1b5fa6b7c96c945800cead447d7ab1f5e87d151d (diff) | |
download | cpython-2b938f84f44a21d8b87ea1420d9f29ecbcd4a213.zip cpython-2b938f84f44a21d8b87ea1420d9f29ecbcd4a213.tar.gz cpython-2b938f84f44a21d8b87ea1420d9f29ecbcd4a213.tar.bz2 |
Revert (unauthorized) parts of 54a89144ee1d which are not in a speed-sensitive
path in order to avoid maintenance issues.
-rw-r--r-- | Modules/_decimal/_decimal.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c index 7dd1eab..1c34ba0 100644 --- a/Modules/_decimal/_decimal.c +++ b/Modules/_decimal/_decimal.c @@ -5835,7 +5835,7 @@ PyInit__decimal(void) /* Init default context template first */ ASSIGN_PTR(default_context_template, - _PyObject_CallNoArg((PyObject *)&PyDecContext_Type)); + PyObject_CallObject((PyObject *)&PyDecContext_Type, NULL)); Py_INCREF(default_context_template); CHECK_INT(PyModule_AddObject(m, "DefaultContext", default_context_template)); @@ -5843,7 +5843,7 @@ PyInit__decimal(void) #ifdef WITHOUT_THREADS /* Init module context */ ASSIGN_PTR(module_context, - _PyObject_CallNoArg((PyObject *)&PyDecContext_Type)); + PyObject_CallObject((PyObject *)&PyDecContext_Type, NULL)); Py_INCREF(Py_False); CHECK_INT(PyModule_AddObject(m, "HAVE_THREADS", Py_False)); #else @@ -5854,7 +5854,7 @@ PyInit__decimal(void) /* Init basic context template */ ASSIGN_PTR(basic_context_template, - _PyObject_CallNoArg((PyObject *)&PyDecContext_Type)); + PyObject_CallObject((PyObject *)&PyDecContext_Type, NULL)); init_basic_context(basic_context_template); Py_INCREF(basic_context_template); CHECK_INT(PyModule_AddObject(m, "BasicContext", @@ -5862,7 +5862,7 @@ PyInit__decimal(void) /* Init extended context template */ ASSIGN_PTR(extended_context_template, - _PyObject_CallNoArg((PyObject *)&PyDecContext_Type)); + PyObject_CallObject((PyObject *)&PyDecContext_Type, NULL)); init_extended_context(extended_context_template); Py_INCREF(extended_context_template); CHECK_INT(PyModule_AddObject(m, "ExtendedContext", |