summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c2
-rw-r--r--Python/ceval.c10
-rw-r--r--Python/codecs.c2
-rw-r--r--Python/errors.c2
-rw-r--r--Python/marshal.c2
-rw-r--r--Python/sysmodule.c2
6 files changed, 10 insertions, 10 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 1f03816..f91bb9f 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -2305,7 +2305,7 @@ builtin_round_impl(PyObject *module, PyObject *number, PyObject *ndigits)
}
if (ndigits == Py_None)
- result = _PyObject_CallNoArg(round);
+ result = _PyObject_CallNoArgs(round);
else
result = PyObject_CallOneArg(round, ndigits);
Py_DECREF(round);
diff --git a/Python/ceval.c b/Python/ceval.c
index a63b803..e9a9c1d 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -867,7 +867,7 @@ match_keys(PyThreadState *tstate, PyObject *map, PyObject *keys)
goto fail;
}
// dummy = object()
- dummy = _PyObject_CallNoArg((PyObject *)&PyBaseObject_Type);
+ dummy = _PyObject_CallNoArgs((PyObject *)&PyBaseObject_Type);
if (dummy == NULL) {
goto fail;
}
@@ -4295,7 +4295,7 @@ check_eval_breaker:
}
SET_TOP(exit);
Py_DECREF(mgr);
- res = _PyObject_CallNoArg(enter);
+ res = _PyObject_CallNoArgs(enter);
Py_DECREF(enter);
if (res == NULL)
goto error;
@@ -4333,7 +4333,7 @@ check_eval_breaker:
}
SET_TOP(exit);
Py_DECREF(mgr);
- res = _PyObject_CallNoArg(enter);
+ res = _PyObject_CallNoArgs(enter);
Py_DECREF(enter);
if (res == NULL) {
goto error;
@@ -5859,7 +5859,7 @@ do_raise(PyThreadState *tstate, PyObject *exc, PyObject *cause)
if (PyExceptionClass_Check(exc)) {
type = exc;
- value = _PyObject_CallNoArg(exc);
+ value = _PyObject_CallNoArgs(exc);
if (value == NULL)
goto raise_error;
if (!PyExceptionInstance_Check(value)) {
@@ -5890,7 +5890,7 @@ do_raise(PyThreadState *tstate, PyObject *exc, PyObject *cause)
if (cause) {
PyObject *fixed_cause;
if (PyExceptionClass_Check(cause)) {
- fixed_cause = _PyObject_CallNoArg(cause);
+ fixed_cause = _PyObject_CallNoArgs(cause);
if (fixed_cause == NULL)
goto raise_error;
Py_DECREF(cause);
diff --git a/Python/codecs.c b/Python/codecs.c
index fa329ce..9ee566b 100644
--- a/Python/codecs.c
+++ b/Python/codecs.c
@@ -280,7 +280,7 @@ PyObject *codec_makeincrementalcodec(PyObject *codec_info,
if (errors)
ret = PyObject_CallFunction(inccodec, "s", errors);
else
- ret = _PyObject_CallNoArg(inccodec);
+ ret = _PyObject_CallNoArgs(inccodec);
Py_DECREF(inccodec);
return ret;
}
diff --git a/Python/errors.c b/Python/errors.c
index b2030f7..36a529e 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -91,7 +91,7 @@ _PyErr_CreateException(PyObject *exception_type, PyObject *value)
PyObject *exc;
if (value == NULL || value == Py_None) {
- exc = _PyObject_CallNoArg(exception_type);
+ exc = _PyObject_CallNoArgs(exception_type);
}
else if (PyTuple_Check(value)) {
exc = PyObject_Call(exception_type, value, NULL);
diff --git a/Python/marshal.c b/Python/marshal.c
index 346384e..530c8d0 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -1292,7 +1292,7 @@ r_object(RFILE *p)
if (n == 0 && type == TYPE_FROZENSET) {
/* call frozenset() to get the empty frozenset singleton */
- v = _PyObject_CallNoArg((PyObject*)&PyFrozenSet_Type);
+ v = _PyObject_CallNoArgs((PyObject*)&PyFrozenSet_Type);
if (v == NULL)
break;
R_REF(v);
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index f2cd3a9..0154af0 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -1676,7 +1676,7 @@ _PySys_GetSizeOf(PyObject *o)
}
}
else {
- res = _PyObject_CallNoArg(method);
+ res = _PyObject_CallNoArgs(method);
Py_DECREF(method);
}