| 1071 | } |
| 1072 | |
| 1073 | PyObject * |
| 1074 | Diff_getitem(Diff *self, PyObject *value) |
| 1075 | { |
| 1076 | size_t i; |
| 1077 | |
| 1078 | if (!PyLong_Check(value)) |
| 1079 | return NULL; /* FIXME Raise error */ |
| 1080 | |
| 1081 | i = PyLong_AsSize_t(value); |
| 1082 | return diff_get_patch_byindex(self->diff, i); |
| 1083 | } |
| 1084 | |
| 1085 | PyDoc_STRVAR(Diff_stats__doc__, "Accumulate diff statistics for all patches."); |
| 1086 |
nothing calls this directly
no test coverage detected
searching dependent graphs…