diff options
author | David Robillard <d@drobilla.net> | 2015-03-17 15:59:58 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-03-17 15:59:58 +0000 |
commit | 247f986d450cc628725630ed0354f18e40b4e18d (patch) | |
tree | 5892b58076ed286e7e3b5bc7864f92979d9ce5e8 | |
parent | ca78288b81d1a8f1e76b27fd9ecec3a3a5601bd1 (diff) | |
download | lilv-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
-rw-r--r-- | bindings/lilv.i | 8 |
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) |