equal
deleted
inserted
replaced
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; |