From 9a9cdb8ac5450f5bdf928a944b2c99b4bae62d0f Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Tue, 4 Feb 2020 17:11:35 +0800 Subject: [PATCH] assembly: fix Python3 compatibility Closes #284 --- freecad/asm3/assembly.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freecad/asm3/assembly.py b/freecad/asm3/assembly.py index 208515d..687177b 100644 --- a/freecad/asm3/assembly.py +++ b/freecad/asm3/assembly.py @@ -1691,7 +1691,7 @@ class AsmElementLink(AsmBase): infos = [] offset = info.Placement.inverse() plaList = [] - for i in xrange(obj.Count): + for i in range(obj.Count): part = info.Part if part[3]: pla = getLinkProperty(part[0],'PlacementList')[i] @@ -3043,7 +3043,7 @@ class AsmRelation(AsmBase): self.getConstraints() elif obj.Count < count: new = [] - for i in xrange(obj.Count,count): + for i in range(obj.Count,count): new.append(AsmRelation.make(obj,(part,i))) obj.Count = count obj.Group = obj.Group[:obj.Count]+new