python: Test: *.py: Fix python3 syntax

This commit is contained in:
Priit Laes
2016-03-12 15:22:37 +02:00
committed by wmayer
parent 946c126866
commit 91e2e0043b
8 changed files with 54 additions and 57 deletions

View File

@@ -10,7 +10,7 @@ import FreeCAD
import Part
import Draft
print "testPathArray started"
print("testPathArray started")
items = 4 # count
centretrans = FreeCAD.Vector(0,0,0) # no translation
#centretrans = FreeCAD.Vector(-5,-5,0) # translation
@@ -18,9 +18,9 @@ orient = True # align to curve
#orient = False # don't align to curve
s = FreeCADGui.Selection.getSelection()
print "testPathArray: Objects in selection: ", len(s)
print "First object in selection is a: ", s[0].Shape.ShapeType
print "Second object in selection is a: ", s[1].Shape.ShapeType
print("testPathArray: Objects in selection: ", len(s))
print("First object in selection is a: ", s[0].Shape.ShapeType)
print("Second object in selection is a: ", s[1].Shape.ShapeType)
base = s[0]
path = s[1]
pathsubs = []
@@ -28,7 +28,7 @@ pathsubs = []
#o = Draft.makePathArray(base,path,items) # test with defaults
o = Draft.makePathArray(base,path,items,centretrans,orient,pathsubs) # test with non-defaults
print "testPathArray ended"
print("testPathArray ended")