Commit 93125ce5 authored by Stefan Behnel's avatar Stefan Behnel

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

parent 4acf45ff
......@@ -16,13 +16,7 @@ main(int argc, char *argv[])
}
/* 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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment