python-systemd: avoid hitting assert in __exit__

Reader_close() asserts that 'args' is always NULL, but the __exit__
function forwards a non-NULL args.
This commit is contained in:
Dave Reisner 2014-10-14 07:54:56 -04:00
parent a5a807e63a
commit 9ff5ff320e

View File

@ -313,7 +313,7 @@ PyDoc_STRVAR(Reader___exit____doc__,
"Part of the context manager protocol.\n"
"Closes the journal.\n");
static PyObject* Reader___exit__(Reader *self, PyObject *args) {
return Reader_close(self, args);
return Reader_close(self, NULL);
}
PyDoc_STRVAR(Reader_next__doc__,