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 <kawai@stratosphere.co.jp> Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
65f218bcae
commit
cb319e22f5
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue