systemd-python: fix listen_fds under Python 2

(cherry picked from commit 819c7e4fa4)
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2014-02-23 12:41:59 +00:00
committed by Colin Guthrie
parent 50b9110bad
commit 6042e2c1dd
+1 -1
View File
@@ -114,7 +114,7 @@ static PyObject* listen_fds(PyObject *self, PyObject *args, PyObject *keywds) {
#else
PyObject *obj = NULL;
if (!PyArg_ParseTupleAndKeywords(args, keywds, "|O:_listen_fds",
(char**) kwlist, &unset, &obj))
(char**) kwlist, &obj))
return NULL;
if (obj != NULL)
unset = PyObject_IsTrue(obj);