572a44
From 9135ee7824ab7f645488e9fa163eda49d4d2b12e Mon Sep 17 00:00:00 2001
572a44
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
572a44
Date: Mon, 30 Dec 2013 00:01:00 -0500
572a44
Subject: [PATCH] systemd-python: fix listen_fds under Python 2
572a44
572a44
---
572a44
 src/python-systemd/_daemon.c | 2 +-
572a44
 1 file changed, 1 insertion(+), 1 deletion(-)
572a44
572a44
diff --git a/src/python-systemd/_daemon.c b/src/python-systemd/_daemon.c
572a44
index c6db69f..3982e85 100644
572a44
--- a/src/python-systemd/_daemon.c
572a44
+++ b/src/python-systemd/_daemon.c
572a44
@@ -114,7 +114,7 @@ static PyObject* listen_fds(PyObject *self, PyObject *args, PyObject *keywds) {
572a44
 #else
572a44
         PyObject *obj = NULL;
572a44
         if (!PyArg_ParseTupleAndKeywords(args, keywds, "|O:_listen_fds",
572a44
-                                         (char**) kwlist, &unset, &obj))
572a44
+                                         (char**) kwlist, &obj))
572a44
                 return NULL;
572a44
         if (obj != NULL)
572a44
                 unset = PyObject_IsTrue(obj);