summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/context.c2
-rw-r--r--Python/fileutils.c8
2 files changed, 1 insertions, 9 deletions
diff --git a/Python/context.c b/Python/context.c
index f30b59b..bb1aa42 100644
--- a/Python/context.c
+++ b/Python/context.c
@@ -860,7 +860,7 @@ contextvar_generate_hash(void *addr, PyObject *name)
return -1;
}
- Py_hash_t res = _Py_HashPointer(addr) ^ name_hash;
+ Py_hash_t res = Py_HashPointer(addr) ^ name_hash;
return res == -1 ? -2 : res;
}
diff --git a/Python/fileutils.c b/Python/fileutils.c
index 72804c3..68d24bc 100644
--- a/Python/fileutils.c
+++ b/Python/fileutils.c
@@ -1842,14 +1842,6 @@ Py_fopen(PyObject *path, const char *mode)
}
-// Deprecated alias to Py_fopen() kept for backward compatibility
-FILE*
-_Py_fopen_obj(PyObject *path, const char *mode)
-{
- return Py_fopen(path, mode);
-}
-
-
// Call fclose().
//
// On Windows, files opened by Py_fopen() in the Python DLL must be closed by