py3: fix some simple incompapilities

issue 0000995
This commit is contained in:
looooo
2017-06-21 11:25:30 +02:00
parent 931820c4b1
commit 3e8249a0e6
5 changed files with 14 additions and 14 deletions

View File

@@ -146,7 +146,7 @@ def profile(curve, side_of_line, radius=1.0, vertfeed=0.0, horizfeed=0.0, offset
print("in profile: 151")
offset_curve = area.Curve(curve)
if offset_curve.getNumVertices() <= 1:
raise Exception, "Sketch has no elements!"
raise Exception("Sketch has no elements!")
if side_of_line == "On":
use_CRC = False

View File

@@ -324,7 +324,7 @@ def export(selection, filename, argstring):
gobjects = []
for g in selection[0].Group:
if g.Name <> 'Machine': # filtering out gcode home position from Machine object
if g.Name != 'Machine': # filtering out gcode home position from Machine object
gobjects.append(g)
for obj in gobjects: