Skip to content

Commit 7cc0eb2

Browse files
committed
Remove PyCXX from _path_intersects_path()
1 parent ea60cb2 commit 7cc0eb2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/_path.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1689,6 +1689,15 @@ path_intersects_path(PathIterator& p1, PathIterator& p2)
16891689
//_path_module::path_intersects_path(const Py::Tuple& args)
16901690
PyObject *_path_intersects_path(PyObject *self, PyObject *_args)
16911691
{
1692+
PyObject *_p1, *_p2, *_filled = Py_False;
1693+
if (!PyArg_ParseTuple(_args, "OO|O", &_p1, &_p2, &_filled)) {
1694+
return NULL;
1695+
}
1696+
1697+
PathIterator p1(Py::Object(_p1, false));
1698+
PathIterator p2(Py::Object(_p2, false));
1699+
bool filled = PyObject_IsTrue(_filled) != 0;
1700+
/*
16921701
const Py::Tuple args(_args);
16931702
args.verify_length(2, 3);
16941703
@@ -1700,7 +1709,7 @@ PyObject *_path_intersects_path(PyObject *self, PyObject *_args)
17001709
{
17011710
filled = args[2].isTrue();
17021711
}
1703-
1712+
*/
17041713
bool isect;
17051714
if (!filled)
17061715
{

0 commit comments

Comments
 (0)