mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-07 14:14:35 +00:00
python-systemd: avoid hitting assert in __exit__
Reader_close() asserts that 'args' is always NULL, but the __exit__
function forwards a non-NULL args.
(cherry picked from commit 9ff5ff320e)
Conflicts:
src/python-systemd/_reader.c
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
18c4d58b79
commit
fd764e8bee
@@ -325,9 +325,8 @@ PyDoc_STRVAR(Reader___exit____doc__,
|
||||
"__exit__(type, value, traceback) -> None\n\n"
|
||||
"Part of the context manager protocol.\n"
|
||||
"Closes the journal.\n");
|
||||
static PyObject* Reader___exit__(Reader *self, PyObject *args)
|
||||
{
|
||||
return Reader_close(self, args);
|
||||
static PyObject* Reader___exit__(Reader *self, PyObject *args) {
|
||||
return Reader_close(self, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user