Commits

JanKanis  committed a4b2b4c

fix exception in remove_watch

  • Participants
  • Parent commits be02527

Comments (0)

Files changed (1)

File inotify/_inotify.c

 
 static PyObject *remove_watch(PyObject *self, PyObject *args)
 {
-	PyObject *ret = NULL;
 	uint32_t wd;
 	int fd;
 	int r;
 		goto bail;
 	}
 	
-	Py_INCREF(Py_None);
-	
-	goto done;
+	Py_RETURN_NONE;
 	
 bail:
-	Py_CLEAR(ret);
-	
-done:
-	return ret;
+	return NULL;
 }
 
 PyDoc_STRVAR(