fixed more python 3 related import problems

release/4.3a0
Matthew Broadway 2019-01-30 09:49:38 +00:00
parent e896ae1c43
commit 70470ff59b
1 changed files with 3 additions and 3 deletions

View File

@ -403,9 +403,9 @@ void Module::emit_cython_pyx(FileWriter& pyxFile) const {
pyxFile.oss << "cimport numpy as np\n"
"import numpy as npp\n"
"cimport " << pxdHeader << "\n"
"from "<< pxdHeader << " cimport shared_ptr\n"
"from "<< pxdHeader << " cimport dynamic_pointer_cast\n"
"from "<< pxdHeader << " cimport make_shared\n";
"from ."<< pxdHeader << " cimport shared_ptr\n"
"from ."<< pxdHeader << " cimport dynamic_pointer_cast\n"
"from ."<< pxdHeader << " cimport make_shared\n";
pyxFile.oss << "# C helper function that copies all arguments into a positional list.\n"
"cdef list process_args(list keywords, tuple args, dict kwargs):\n"