Skip to content

Commit

Permalink
Merge pull request #1380 from jcarpent/topic/python
Browse files Browse the repository at this point in the history
Fix import of warnings module
  • Loading branch information
jcarpent authored Jan 23, 2021
2 parents 3bdc0af + f9039f6 commit 322184d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions bindings/python/module.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2015-2020 CNRS INRIA
// Copyright (c) 2015-2021 CNRS INRIA
// Copyright (c) 2015 Wandercraft, 86 rue de Paris 91400 Orsay, France.
//

Expand Down Expand Up @@ -29,10 +29,8 @@ BOOST_PYTHON_MODULE(pinocchio_pywrap)
bp::scope().attr("__raw_version__") = bp::str(PINOCCHIO_VERSION);
eigenpy::enableEigenPy();

// Enable warning
#ifndef Py_LIMITED_API
_PyWarnings_Init();
#endif
// Enable warnings
bp::import("warnings");

if(! register_symbolic_link_to_registered_type<Eigen::Quaterniond>())
eigenpy::exposeQuaternion();
Expand Down

0 comments on commit 322184d

Please sign in to comment.