From 32a41b1abe1a4aab0892c9c2051be6ba5b379f1e Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Mon, 11 May 2020 22:17:58 +0200 Subject: New upstream version 2.2.0~rc1+repack --- boost/libs/python/src/import.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 boost/libs/python/src/import.cpp (limited to 'boost/libs/python/src/import.cpp') diff --git a/boost/libs/python/src/import.cpp b/boost/libs/python/src/import.cpp deleted file mode 100644 index 0add79ee..00000000 --- a/boost/libs/python/src/import.cpp +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright Stefan Seefeld 2005. -// Distributed under the Boost Software License, Version 1.0. (See -// accompanying file LICENSE_1_0.txt or copy at -// http://www.boost.org/LICENSE_1_0.txt) - -#include -#include -#include -#include - -namespace boost -{ -namespace python -{ - -object BOOST_PYTHON_DECL import(str name) -{ - // should be 'char const *' but older python versions don't use 'const' yet. - char *n = python::extract(name); - python::handle<> module(PyImport_ImportModule(n)); - return python::object(module); -} - -} // namespace boost::python -} // namespace boost -- cgit v1.2.3