From cb319e22f5680b49fad62dc7f0eb35b7d737cb3b Mon Sep 17 00:00:00 2001 From: Hiroaki KAWAI Date: Wed, 9 Apr 2014 10:09:16 +0900 Subject: [PATCH] python: fix wrongly passing argument to function in ObjIterator.next() self.__next__() bound method does not take an extra argument. https://github.com/thom311/libnl/pull/57 Signed-off-by: Hiroaki KAWAI Signed-off-by: Thomas Haller --- python/netlink/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/netlink/core.py b/python/netlink/core.py index fbd1c9e..e5864cf 100644 --- a/python/netlink/core.py +++ b/python/netlink/core.py @@ -449,7 +449,7 @@ class ObjIterator(object): return capi.nl_cache_get_next(self._nl_object) def next(self): - return self.__next__(self) + return self.__next__() def __next__(self): if self._end: