Compilation fixes and python 2 compatibility. Thanks Yorik.

This commit is contained in:
Thomas Krijnen
2015-01-07 10:22:55 +00:00
parent 9780c047e9
commit 1d319f7ac4
2 changed files with 5 additions and 6 deletions
@@ -43,8 +43,7 @@ def create_shape(settings, inst):
def iterate(settings, filename):
it = iterator(settings, filename)
if not it.findContext(): return None
while True:
yield it.get()
if not it.next(): break
if it.findContext():
while True:
yield it.get()
if not it.next(): break