systemd-python: fix listen_fds under Python 2

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2013-12-30 00:17:16 -05:00
parent b560cc1c45
commit 819c7e4fa4
+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);