[Python-checkins] Fix redundant declaration of _PyImport_AddModuleObject (GH-7992)

Miss Islington (bot) webhook-mailer at python.org
Fri Jun 29 19:03:10 EDT 2018


https://github.com/python/cpython/commit/c919252a28f4e9dd326dc2c703b4eee6e247be83
commit: c919252a28f4e9dd326dc2c703b4eee6e247be83
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-06-29T16:03:07-07:00
summary:

Fix redundant declaration of _PyImport_AddModuleObject (GH-7992)

(cherry picked from commit f874bd1f0630644f3e3faaa2d51e6749465c70bd)

Co-authored-by: Jeremy Cline <jeremy at jcline.org>

files:
M Include/import.h

diff --git a/Include/import.h b/Include/import.h
index 13f32a1004cf..c664803478a5 100644
--- a/Include/import.h
+++ b/Include/import.h
@@ -54,9 +54,6 @@ PyAPI_FUNC(PyObject *) PyImport_AddModuleObject(
     PyObject *name
     );
 #endif
-#ifndef Py_LIMITED_API
-PyAPI_FUNC(PyObject *) _PyImport_AddModuleObject(PyObject *, PyObject *);
-#endif
 PyAPI_FUNC(PyObject *) PyImport_AddModule(
     const char *name            /* UTF-8 encoded string */
     );



More information about the Python-checkins mailing list