Skip to content
Snippets Groups Projects
Commit 62161b10c8f8 authored by Stefan Behnel's avatar Stefan Behnel
Browse files

Remove Py2 fallback from embedding example since the rest of the code is Py3-only anyway.

parent fa136224e24c
No related branches found
No related tags found
No related merge requests found
......@@ -16,13 +16,7 @@
}
/* Add a built-in module, before Py_Initialize */
#if PY_MAJOR_VERSION == 2
/* Legacy Python 2.x version. */
if (PyImport_AppendInittab("spam", initspam) == -1)
#else
if (PyImport_AppendInittab("spam", PyInit_spam) == -1)
#endif
{
if (PyImport_AppendInittab("spam", PyInit_spam) == -1) {
fprintf(stderr, "Error: could not extend in-built modules table\n");
exit(1);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment