@@ -1194,13 +1194,13 @@ context_new(PyTypeObject *type, PyObject *args UNUSED, PyObject *kwds UNUSED)
11941194 return NULL ;
11951195 }
11961196
1197- self -> traps = PyObject_CallObject ((PyObject * )PyDecSignalDict_Type , NULL );
1197+ self -> traps = _PyObject_CallNoArg ((PyObject * )PyDecSignalDict_Type );
11981198 if (self -> traps == NULL ) {
11991199 self -> flags = NULL ;
12001200 Py_DECREF (self );
12011201 return NULL ;
12021202 }
1203- self -> flags = PyObject_CallObject ((PyObject * )PyDecSignalDict_Type , NULL );
1203+ self -> flags = _PyObject_CallNoArg ((PyObject * )PyDecSignalDict_Type );
12041204 if (self -> flags == NULL ) {
12051205 Py_DECREF (self );
12061206 return NULL ;
@@ -1395,7 +1395,7 @@ ieee_context(PyObject *dummy UNUSED, PyObject *v)
13951395 goto error ;
13961396 }
13971397
1398- context = PyObject_CallObject ((PyObject * )& PyDecContext_Type , NULL );
1398+ context = _PyObject_CallNoArg ((PyObject * )& PyDecContext_Type );
13991399 if (context == NULL ) {
14001400 return NULL ;
14011401 }
@@ -1417,7 +1417,7 @@ context_copy(PyObject *self, PyObject *args UNUSED)
14171417{
14181418 PyObject * copy ;
14191419
1420- copy = PyObject_CallObject ((PyObject * )& PyDecContext_Type , NULL );
1420+ copy = _PyObject_CallNoArg ((PyObject * )& PyDecContext_Type );
14211421 if (copy == NULL ) {
14221422 return NULL ;
14231423 }
@@ -5835,15 +5835,15 @@ PyInit__decimal(void)
58355835
58365836 /* Init default context template first */
58375837 ASSIGN_PTR (default_context_template ,
5838- PyObject_CallObject ((PyObject * )& PyDecContext_Type , NULL ));
5838+ _PyObject_CallNoArg ((PyObject * )& PyDecContext_Type ));
58395839 Py_INCREF (default_context_template );
58405840 CHECK_INT (PyModule_AddObject (m , "DefaultContext" ,
58415841 default_context_template ));
58425842
58435843#ifdef WITHOUT_THREADS
58445844 /* Init module context */
58455845 ASSIGN_PTR (module_context ,
5846- PyObject_CallObject ((PyObject * )& PyDecContext_Type , NULL ));
5846+ _PyObject_CallNoArg ((PyObject * )& PyDecContext_Type ));
58475847 Py_INCREF (Py_False );
58485848 CHECK_INT (PyModule_AddObject (m , "HAVE_THREADS" , Py_False ));
58495849#else
@@ -5854,15 +5854,15 @@ PyInit__decimal(void)
58545854
58555855 /* Init basic context template */
58565856 ASSIGN_PTR (basic_context_template ,
5857- PyObject_CallObject ((PyObject * )& PyDecContext_Type , NULL ));
5857+ _PyObject_CallNoArg ((PyObject * )& PyDecContext_Type ));
58585858 init_basic_context (basic_context_template );
58595859 Py_INCREF (basic_context_template );
58605860 CHECK_INT (PyModule_AddObject (m , "BasicContext" ,
58615861 basic_context_template ));
58625862
58635863 /* Init extended context template */
58645864 ASSIGN_PTR (extended_context_template ,
5865- PyObject_CallObject ((PyObject * )& PyDecContext_Type , NULL ));
5865+ _PyObject_CallNoArg ((PyObject * )& PyDecContext_Type ));
58665866 init_extended_context (extended_context_template );
58675867 Py_INCREF (extended_context_template );
58685868 CHECK_INT (PyModule_AddObject (m , "ExtendedContext" ,
0 commit comments