summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Objects')
-rw-r--r--Objects/bytesobject.c2
-rw-r--r--Objects/fileobject.c4
-rw-r--r--Objects/unicodeobject.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index a2c1f4c..c3a31be 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -753,7 +753,7 @@ _PyBytes_FormatEx(const char *format, Py_ssize_t format_len,
"* wants int");
goto error;
}
- prec = _PyLong_AsInt(v);
+ prec = PyLong_AsInt(v);
if (prec == -1 && PyErr_Occurred())
goto error;
if (prec < 0)
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index 751fb69..9c24025 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -174,7 +174,7 @@ PyObject_AsFileDescriptor(PyObject *o)
PyObject *meth;
if (PyLong_Check(o)) {
- fd = _PyLong_AsInt(o);
+ fd = PyLong_AsInt(o);
}
else if (PyObject_GetOptionalAttr(o, &_Py_ID(fileno), &meth) < 0) {
return -1;
@@ -186,7 +186,7 @@ PyObject_AsFileDescriptor(PyObject *o)
return -1;
if (PyLong_Check(fno)) {
- fd = _PyLong_AsInt(fno);
+ fd = PyLong_AsInt(fno);
Py_DECREF(fno);
}
else {
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 6bbc2af..2f6f413 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -14034,7 +14034,7 @@ unicode_format_arg_parse(struct unicode_formatter_t *ctx,
"* wants int");
return -1;
}
- arg->prec = _PyLong_AsInt(v);
+ arg->prec = PyLong_AsInt(v);
if (arg->prec == -1 && PyErr_Occurred())
return -1;
if (arg->prec < 0)