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:
parent
a5a807e63a
commit
9ff5ff320e
|
@ -313,7 +313,7 @@ PyDoc_STRVAR(Reader___exit____doc__,
|
||||||
"Part of the context manager protocol.\n"
|
"Part of the context manager protocol.\n"
|
||||||
"Closes the journal.\n");
|
"Closes the journal.\n");
|
||||||
static PyObject* Reader___exit__(Reader *self, PyObject *args) {
|
static PyObject* Reader___exit__(Reader *self, PyObject *args) {
|
||||||
return Reader_close(self, args);
|
return Reader_close(self, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
PyDoc_STRVAR(Reader_next__doc__,
|
PyDoc_STRVAR(Reader_next__doc__,
|
||||||
|
|
Loading…
Reference in a new issue