##// END OF EJS Templates
reachableroots: fix transposition of set and list types in PyArg_ParseTuple...
Augie Fackler -
r26009:bbb69869 default
parent child Browse files
Show More
@@ -1112,8 +1112,10 b' static PyObject *reachableroots(indexObj'
1112 long minroot;
1112 long minroot;
1113 PyObject *includepatharg = NULL;
1113 PyObject *includepatharg = NULL;
1114 int includepath = 0;
1114 int includepath = 0;
1115 /* heads is a list */
1115 PyObject *heads = NULL;
1116 PyObject *heads = NULL;
1116 Py_ssize_t numheads;
1117 Py_ssize_t numheads;
1118 /* roots is a set */
1117 PyObject *roots = NULL;
1119 PyObject *roots = NULL;
1118 PyObject *reachable = NULL;
1120 PyObject *reachable = NULL;
1119
1121
@@ -1134,8 +1136,8 b' static PyObject *reachableroots(indexObj'
1134 char *seen = NULL;
1136 char *seen = NULL;
1135
1137
1136 /* Get arguments */
1138 /* Get arguments */
1137 if (!PyArg_ParseTuple(args, "lO!O!O!", &minroot, &PySet_Type, &heads,
1139 if (!PyArg_ParseTuple(args, "lO!O!O!", &minroot, &PyList_Type, &heads,
1138 &PyList_Type, &roots, &PyBool_Type, &includepatharg))
1140 &PySet_Type, &roots, &PyBool_Type, &includepatharg))
1139 goto bail;
1141 goto bail;
1140
1142
1141 if (includepatharg == Py_True)
1143 if (includepatharg == Py_True)
General Comments 0
You need to be logged in to leave comments. Login now