This commit is contained in:
Nikolay Kim 2017-06-23 12:20:54 -07:00
parent 7076a57fe4
commit e5b99ae2c9
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ pub fn py2_init(fnname: &syn::Ident, name: &String, doc: syn::Lit) -> Tokens {
// initialize python
pyo3::prepare_pyo3_library();
py03::ffi::PyEval_InitThreads();
pyo3::ffi::PyEval_InitThreads();
let name = concat!(stringify!(#m_name), "\0").as_ptr() as *const _;
let guard = pyo3::callback::AbortOnDrop("py_module_initializer");