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:
Dave Reisner
2014-10-26 18:23:46 -04:00
committed by Zbigniew Jędrzejewski-Szmek
parent 18c4d58b79
commit fd764e8bee
+2 -3
View File
@@ -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);
}