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:
Hiroaki KAWAI 2014-04-09 10:09:16 +09:00 committed by Thomas Haller
parent 65f218bcae
commit cb319e22f5

View File

@ -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: