We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea4e6c0 commit 98a468dCopy full SHA for 98a468d
1 file changed
src/import.cpp
@@ -17,7 +17,7 @@ object BOOST_PYTHON_DECL import(str name)
17
{
18
// should be 'char const *' but older python versions don't use 'const' yet.
19
char *n = python::extract<char *>(name);
20
- python::handle<> module(python::borrowed(PyImport_ImportModule(n)));
+ python::handle<> module(PyImport_ImportModule(n));
21
return python::object(module);
22
}
23
0 commit comments