summaryrefslogtreecommitdiff
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-07-24 22:25:03 +0000
committerJack Jansen <jack.jansen@cwi.nl>2003-07-24 22:25:03 +0000
commitb770fcd1253b7942108d036d4efc49f1ee1fdc3c (patch)
treedbabb57628c5eae1a5c4de1b59fc209c1f4e74cf /Mac
parent3cb2c59cb92b57f1fcd5abb680628fd5cb7a81f0 (diff)
downloadcpython-b770fcd1253b7942108d036d4efc49f1ee1fdc3c.tar.gz
Don't export the SPB type as "SPB", because it shadows the method SPB,
which is really important. This is a stopgap measure, as only the generated C code is adapted. Fixes #776533.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Modules/snd/_Sndmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mac/Modules/snd/_Sndmodule.c b/Mac/Modules/snd/_Sndmodule.c
index c27fab626d..0075c986be 100644
--- a/Mac/Modules/snd/_Sndmodule.c
+++ b/Mac/Modules/snd/_Sndmodule.c
@@ -1150,8 +1150,11 @@ void init_Snd(void)
PyModule_AddObject(m, "SndChannelType", (PyObject *)&SndChannel_Type);
SPB_Type.ob_type = &PyType_Type;
if (PyType_Ready(&SPB_Type) < 0) return;
+#if 0
+ /* This would shadow the SPB routine, which is bad news (it is important) */
Py_INCREF(&SPB_Type);
PyModule_AddObject(m, "SPB", (PyObject *)&SPB_Type);
+#endif
/* Backward-compatible name */
Py_INCREF(&SPB_Type);
PyModule_AddObject(m, "SPBType", (PyObject *)&SPB_Type);