Kaydet (Commit) 2b938f84 authored tarafından Stefan Krah's avatar Stefan Krah

Revert (unauthorized) parts of 54a89144ee1d which are not in a speed-sensitive

path in order to avoid maintenance issues.
üst 1b5fa6b7
...@@ -5835,7 +5835,7 @@ PyInit__decimal(void) ...@@ -5835,7 +5835,7 @@ PyInit__decimal(void)
/* Init default context template first */ /* Init default context template first */
ASSIGN_PTR(default_context_template, ASSIGN_PTR(default_context_template,
_PyObject_CallNoArg((PyObject *)&PyDecContext_Type)); PyObject_CallObject((PyObject *)&PyDecContext_Type, NULL));
Py_INCREF(default_context_template); Py_INCREF(default_context_template);
CHECK_INT(PyModule_AddObject(m, "DefaultContext", CHECK_INT(PyModule_AddObject(m, "DefaultContext",
default_context_template)); default_context_template));
...@@ -5843,7 +5843,7 @@ PyInit__decimal(void) ...@@ -5843,7 +5843,7 @@ PyInit__decimal(void)
#ifdef WITHOUT_THREADS #ifdef WITHOUT_THREADS
/* Init module context */ /* Init module context */
ASSIGN_PTR(module_context, ASSIGN_PTR(module_context,
_PyObject_CallNoArg((PyObject *)&PyDecContext_Type)); PyObject_CallObject((PyObject *)&PyDecContext_Type, NULL));
Py_INCREF(Py_False); Py_INCREF(Py_False);
CHECK_INT(PyModule_AddObject(m, "HAVE_THREADS", Py_False)); CHECK_INT(PyModule_AddObject(m, "HAVE_THREADS", Py_False));
#else #else
...@@ -5854,7 +5854,7 @@ PyInit__decimal(void) ...@@ -5854,7 +5854,7 @@ PyInit__decimal(void)
/* Init basic context template */ /* Init basic context template */
ASSIGN_PTR(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); init_basic_context(basic_context_template);
Py_INCREF(basic_context_template); Py_INCREF(basic_context_template);
CHECK_INT(PyModule_AddObject(m, "BasicContext", CHECK_INT(PyModule_AddObject(m, "BasicContext",
...@@ -5862,7 +5862,7 @@ PyInit__decimal(void) ...@@ -5862,7 +5862,7 @@ PyInit__decimal(void)
/* Init extended context template */ /* Init extended context template */
ASSIGN_PTR(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); init_extended_context(extended_context_template);
Py_INCREF(extended_context_template); Py_INCREF(extended_context_template);
CHECK_INT(PyModule_AddObject(m, "ExtendedContext", CHECK_INT(PyModule_AddObject(m, "ExtendedContext",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment