mirror of
https://gitee.com/openharmony/third_party_libnl
synced 2024-11-24 10:39:53 +00:00
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
@ -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…
Reference in New Issue
Block a user