https://github.com/python/cpython/commit/88030861e216ac791725c8784752201d6fe31329
commit: 88030861e216ac791725c8784752201d6fe31329
branch: main
author: Bénédikt Tran <[email protected]>
committer: vstinner <[email protected]>
date: 2024-08-01T12:26:09+02:00
summary:

gh-122555: Remove removed functions from `Doc/data/refcounts.dat` (#122556)

files:
M Doc/data/refcounts.dat
M Lib/importlib/_bootstrap.py

diff --git a/Doc/data/refcounts.dat b/Doc/data/refcounts.dat
index a7d06e076a1b55..ccef104eeefde5 100644
--- a/Doc/data/refcounts.dat
+++ b/Doc/data/refcounts.dat
@@ -364,8 +364,6 @@ PyComplex_RealAsDouble:PyObject*:op:0:
 PyContext_CheckExact:int:::
 PyContext_CheckExact:PyObject*:o:0:
 
-PyContext_ClearFreeList:int:::
-
 PyContext_Copy:PyObject*::+1:
 PyContext_Copy:PyObject*:ctx:0:
 
@@ -1030,8 +1028,6 @@ PyImport_AddModule:const char*:name::
 PyImport_AddModuleObject:PyObject*::0:reference borrowed from sys.modules
 PyImport_AddModuleObject:PyObject*:name:0:
 
-PyImport_Cleanup:void:::
-
 PyImport_ExecCodeModule:PyObject*::+1:
 PyImport_ExecCodeModule:const char*:name::
 PyImport_ExecCodeModule:PyObject*:co:0:
@@ -2405,12 +2401,6 @@ PyUnicode_DATA:PyObject*:o:0:
 PyUnicode_GET_LENGTH:Py_ssize_t:::
 PyUnicode_GET_LENGTH:PyObject*:o:0:
 
-PyUnicode_GET_SIZE:Py_ssize_t:::
-PyUnicode_GET_SIZE:PyObject*:o:0:
-
-PyUnicode_GET_DATA_SIZE:Py_ssize_t:::
-PyUnicode_GET_DATA_SIZE:PyObject*:o:0:
-
 PyUnicode_KIND:int:::
 PyUnicode_KIND:PyObject*:o:0:
 
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
index de5651f0a7fc36..b70d09b32abce6 100644
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -1241,7 +1241,6 @@ def _find_spec(name, path, target=None):
     """Find a module's spec."""
     meta_path = sys.meta_path
     if meta_path is None:
-        # PyImport_Cleanup() is running or has been called.
         raise ImportError("sys.meta_path is None, Python is likely "
                           "shutting down")
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to