Show More
@@ -169,6 +169,11 b' static PyMethodDef dirstatetuple_methods' | |||
|
169 | 169 | {NULL} /* Sentinel */ |
|
170 | 170 | }; |
|
171 | 171 | |
|
172 | static PyObject *dirstatetuple_get_mode(dirstateTupleObject *self) | |
|
173 | { | |
|
174 | return PyInt_FromLong(self->mode); | |
|
175 | }; | |
|
176 | ||
|
172 | 177 | static PyObject *dirstatetuple_get_state(dirstateTupleObject *self) |
|
173 | 178 | { |
|
174 | 179 | return PyBytes_FromStringAndSize(&self->state, 1); |
@@ -238,6 +243,7 b' static PyObject *dirstatetuple_get_remov' | |||
|
238 | 243 | }; |
|
239 | 244 | |
|
240 | 245 | static PyGetSetDef dirstatetuple_getset[] = { |
|
246 | {"mode", (getter)dirstatetuple_get_mode, NULL, "mode", NULL}, | |
|
241 | 247 | {"state", (getter)dirstatetuple_get_state, NULL, "state", NULL}, |
|
242 | 248 | {"tracked", (getter)dirstatetuple_get_tracked, NULL, "tracked", NULL}, |
|
243 | 249 | {"added", (getter)dirstatetuple_get_added, NULL, "added", NULL}, |
General Comments 0
You need to be logged in to leave comments.
Login now