summaryrefslogtreecommitdiff
path: root/Include/moduleobject.h
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2016-08-21 17:41:56 +1000
committerNick Coghlan <ncoghlan@gmail.com>2016-08-21 17:41:56 +1000
commit8682f578c1c8fd0486c886b001729907a5409a9f (patch)
tree2f54886ef578b7faf94e26fe32e24fbb258b896a /Include/moduleobject.h
parent9c8aa9bffe755fe6126dc72dfd037c6b20e65906 (diff)
downloadcpython-git-8682f578c1c8fd0486c886b001729907a5409a9f.tar.gz
Issue #27782: Fix m_methods handling in multiphase init
Multi-phase extension module import now correctly allows the ``m_methods`` field to be used to add module level functions to instances of non-module types returned from ``Py_create_mod``. Patch by Xiang Zhang.
Diffstat (limited to 'Include/moduleobject.h')
-rw-r--r--Include/moduleobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/moduleobject.h b/Include/moduleobject.h
index 229d7fadc2..b44fb9b961 100644
--- a/Include/moduleobject.h
+++ b/Include/moduleobject.h
@@ -77,7 +77,7 @@ typedef struct PyModuleDef{
traverseproc m_traverse;
inquiry m_clear;
freefunc m_free;
-}PyModuleDef;
+} PyModuleDef;
#ifdef __cplusplus
}