fix syntax error for python3

This commit is contained in:
Adrian Schröter
2018-04-17 11:01:59 +02:00
committed by Yorik van Havre
parent 5b744ae05b
commit 04a8bf6a29

View File

@@ -611,9 +611,9 @@ class _Wall(ArchComponent.Component):
if hasattr(obj,"MakeBlocks"):
fvol = obj.BlockLength.Value * obj.BlockHeight.Value * obj.Width.Value
if fvol:
print "base volume:",fvol
print("base volume:",fvol)
for s in base.Solids:
print abs(s.Volume - fvol)
print(abs(s.Volume - fvol))
ents = [s for s in base.Solids if abs(s.Volume - fvol) < 1]
obj.CountEntire = len(ents)
obj.CountBroken = len(base.Solids) - len(ents)