Show More
@@ -757,8 +757,11 b' static int add_roots_get_min(indexObject' | |||||
757 | int rev, minrev = -1; |
|
757 | int rev, minrev = -1; | |
758 | char *node; |
|
758 | char *node; | |
759 |
|
759 | |||
760 | if (!PySet_Check(roots)) |
|
760 | if (!PySet_Check(roots)) { | |
|
761 | PyErr_SetString(PyExc_TypeError, | |||
|
762 | "roots must be a set of nodes"); | |||
761 | return -2; |
|
763 | return -2; | |
|
764 | } | |||
762 | iterator = PyObject_GetIter(roots); |
|
765 | iterator = PyObject_GetIter(roots); | |
763 | if (iterator == NULL) |
|
766 | if (iterator == NULL) | |
764 | return -2; |
|
767 | return -2; |
General Comments 0
You need to be logged in to leave comments.
Login now