Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
93125ce5
Commit
93125ce5
authored
May 03, 2020
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Py2 fallback from embedding example since the rest of the code is Py3-only anyway.
parent
4acf45ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
docs/examples/tutorial/embedding/spam_main.c
docs/examples/tutorial/embedding/spam_main.c
+1
-7
No files found.
docs/examples/tutorial/embedding/spam_main.c
View file @
93125ce5
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment