mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 21:51:37 +00:00
systemd-python: fix listen_fds under Python 2
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user