python: PartDesign: *.py: Fix python3 syntax

This commit is contained in:
Priit Laes
2016-03-12 14:42:43 +02:00
committed by looooo
parent 8b45976c8d
commit da1081bc98
6 changed files with 9 additions and 8 deletions

View File

@@ -85,9 +85,9 @@ def makeFilletArc(M1,P,Q,N,r2,ccw):
t = t2
br2 = b.mult(r2)
print br2
print(br2)
ut = u.mult(t)
print ut
print(ut)
M2 = P.add(ut).add(br2)
S1 = M1.mult(r2/(r1+r2)).add(M2.mult(r1/(r1+r2)))
S2 = M2.sub(br2)

View File

@@ -47,7 +47,7 @@ def makeRadialCopy():
sel = sel[0]
shape = sel.Shape
name = sel.Label
except IndexError, AttributeError:
except (IndexError, AttributeError):
QtGui.QMessageBox.critical(None,"Wrong selection","Please select a shape object")
#raise Exception("Nothing selected")
else: