Skip to content

Commit a40ac11

Browse files
committed
python: Don't use Py_IsNone that is not supported by all Python version
1 parent 2001728 commit a40ac11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindings/python/parsers/urdf/geometry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ namespace pinocchio
4545
}
4646

4747
std::vector<std::string> pkg_dirs;
48-
if (Py_IsNone(py_pkg_dirs.ptr()))
48+
if (py_pkg_dirs.ptr() == Py_None)
4949
{
5050
}
5151
else if (PyList_Check(py_pkg_dirs.ptr()))

0 commit comments

Comments
 (0)