summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-03-17 15:59:58 +0000
committerDavid Robillard <d@drobilla.net>2015-03-17 15:59:58 +0000
commit247f986d450cc628725630ed0354f18e40b4e18d (patch)
tree5892b58076ed286e7e3b5bc7864f92979d9ce5e8 /bindings
parentca78288b81d1a8f1e76b27fd9ecec3a3a5601bd1 (diff)
downloadlilv-247f986d450cc628725630ed0354f18e40b4e18d.tar.gz
lilv-247f986d450cc628725630ed0354f18e40b4e18d.tar.bz2
lilv-247f986d450cc628725630ed0354f18e40b4e18d.zip
Fix plugin iteration in Python.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5643 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'bindings')
-rw-r--r--bindings/lilv.i8
1 files changed, 4 insertions, 4 deletions
diff --git a/bindings/lilv.i b/bindings/lilv.i
index 6b2df7e..c4c33fb 100644
--- a/bindings/lilv.i
+++ b/bindings/lilv.i
@@ -34,11 +34,11 @@ namespace Lilv {
self.iter = plugins.begin()
def next(self):
- self.iter = self.plugins.next(self.iter)
- if not self.plugins.is_end(self.iter):
- return self.plugins.get(self.iter)
- else:
+ if self.plugins.is_end(self.iter):
raise StopIteration
+ plugin = self.plugins.get(self.iter)
+ self.iter = self.plugins.next(self.iter)
+ return plugin
return Iterator(self)