mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Attempted fix for #765: _unboundmodule missing for python3.
git-svn-id: file:///svn/unbound/trunk@3733 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
29cd24bbc6
commit
688fa185b0
2 changed files with 4 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
30 May 2016: Wouter
|
||||
- Fix time in case answer comes from cache in ub_resolve_event().
|
||||
- Attempted fix for #765: _unboundmodule missing for python3.
|
||||
|
||||
27 May 2016: Wouter
|
||||
- Fix #770: Small subgroup attack on DH used in unix pipe on localhost
|
||||
|
|
|
|||
|
|
@ -141,6 +141,9 @@ int pythonmod_init(struct module_env* env, int id)
|
|||
#endif
|
||||
Py_SetProgramName(progname);
|
||||
Py_NoSiteFlag = 1;
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
PyImport_AppendInittab(SWIG_name, (void*)SWIG_init);
|
||||
#endif
|
||||
Py_Initialize();
|
||||
PyEval_InitThreads();
|
||||
SWIG_init();
|
||||
|
|
|
|||
Loading…
Reference in a new issue