hgext/inotify/linux/_inotify.c
changeset 11679 b5f61da929c8
parent 11549 935c83ce9172
child 13297 613b8bd2284e
equal deleted inserted replaced
11673:a2f11188e2d2 11679:b5f61da929c8
   341 
   341 
   342 static PyObject *event_repr(struct event *evt)
   342 static PyObject *event_repr(struct event *evt)
   343 {
   343 {
   344 	int cookie = evt->cookie == Py_None ? -1 : PyInt_AsLong(evt->cookie);
   344 	int cookie = evt->cookie == Py_None ? -1 : PyInt_AsLong(evt->cookie);
   345 	PyObject *ret = NULL, *pymasks = NULL, *pymask = NULL;
   345 	PyObject *ret = NULL, *pymasks = NULL, *pymask = NULL;
   346 	char *maskstr;
       
   347 	PyObject *tuple = NULL, *formatstr = NULL;
   346 	PyObject *tuple = NULL, *formatstr = NULL;
   348 
   347 
   349 	pymasks = decode_mask(PyInt_AsLong(evt->mask));
   348 	pymasks = decode_mask(PyInt_AsLong(evt->mask));
   350 	if (pymasks == NULL)
   349 	if (pymasks == NULL)
   351 		goto bail;
   350 		goto bail;