mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
Merge branches/pep-0384.
This commit is contained in:
parent
c4df784514
commit
4d0d471a80
102 changed files with 2835 additions and 75 deletions
|
|
@ -74,7 +74,7 @@ PyModule_Create2(struct PyModuleDef* module, int module_api_version)
|
|||
module->m_base.m_index = max_module_number;
|
||||
}
|
||||
name = module->m_name;
|
||||
if (module_api_version != PYTHON_API_VERSION) {
|
||||
if (module_api_version != PYTHON_API_VERSION && module_api_version != PYTHON_ABI_VERSION) {
|
||||
int err;
|
||||
err = PyErr_WarnFormat(PyExc_RuntimeWarning, 1,
|
||||
"Python C API version mismatch for module %.100s: "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue