[Python-checkins] cpython (2.7): fix python 3 mod init function declaration (closes #26827)

benjamin.peterson python-checkins at python.org
Sat Apr 23 02:49:19 EDT 2016


https://hg.python.org/cpython/rev/8d6bd32a56a8
changeset:   101099:8d6bd32a56a8
branch:      2.7
parent:      101092:0f7a299c6d50
user:        Benjamin Peterson <benjamin at python.org>
date:        Fri Apr 22 23:43:10 2016 -0700
summary:
  fix python 3 mod init function declaration (closes #26827)

files:
  Doc/howto/cporting.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/howto/cporting.rst b/Doc/howto/cporting.rst
--- a/Doc/howto/cporting.rst
+++ b/Doc/howto/cporting.rst
@@ -161,7 +161,7 @@
 
    #define INITERROR return NULL
 
-   PyObject *
+   PyMODINIT_FUNC
    PyInit_myextension(void)
 
    #else

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list