mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Compilation fixes and python 2 compatibility. Thanks Yorik.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user