Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
dynamic-graph-python
Commits
e170e6f2
Unverified
Commit
e170e6f2
authored
Sep 06, 2021
by
Guilhem Saurel
Committed by
GitHub
Sep 06, 2021
Browse files
Merge pull request #81 from nim65s/topic/py39
interpreter: fix deprecation for python 3.9
parents
84df690f
4982119a
Pipeline
#15891
passed with stage
in 13 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/interpreter.cc
View file @
e170e6f2
...
...
@@ -69,7 +69,9 @@ Interpreter::Interpreter() {
dlopen
(
PYTHON_LIBRARY
,
RTLD_LAZY
|
RTLD_GLOBAL
);
#endif
Py_Initialize
();
#if PY_MAJOR_VERSION < 3 || PY_MINOR_VERSION < 7
PyEval_InitThreads
();
#endif
mainmod_
=
PyImport_AddModule
(
"__main__"
);
Py_INCREF
(
mainmod_
);
globals_
=
PyModule_GetDict
(
mainmod_
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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