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
+1 -1
View File
@@ -17,7 +17,7 @@
* * * *
********************************************************************************/ ********************************************************************************/
#include "../ifcparse/IfcParse.h" #include "../ifcparse/IfcFile.h"
using namespace IfcSchema; using namespace IfcSchema;
@@ -43,8 +43,7 @@ def create_shape(settings, inst):
def iterate(settings, filename): def iterate(settings, filename):
it = iterator(settings, filename) it = iterator(settings, filename)
if not it.findContext(): return None if it.findContext():
while True: while True:
yield it.get() yield it.get()
if not it.next(): break if not it.next(): break