Salome HOME
Porting to SALOME 9.1.0.
[modules/shaper.git] / src / SketchPlugin / Test / TestHighload.py
index befac2e273e9a4fe2ef3d48b8c52a4b706e89dc6..dc9c84bf7843a211bfcee010c3ee52faf1d7f089 100644 (file)
@@ -44,7 +44,7 @@ def createNAngle(theSketch, theN, theRadius, theEdgeLength=0):
     # Create an N-Angle at (0,0)
     rad = 2. * math.pi / theN
     points = []
-    for a in xrange(theN):
+    for a in range(theN):
         x = round(math.cos(rad * a), 10) * theRadius
         y = round(math.sin(rad * a), 10) * theRadius
         points.append((x, y))
@@ -126,8 +126,8 @@ aDOF = 0
 deltaX = deltaY = 50.
 n = 5
 aSession.startOperation()
-for i in xrange(4):
-    for j in xrange(4):
+for i in range(4):
+    for j in range(4):
         allNangleLines = createNAngle(aSketchFeature, n, 50)
         fixLineLength(aSketchFeature, allNangleLines)
         moveTo(allNangleLines, deltaX, deltaY)