Skip to content

Commit

Permalink
[skip ci] fix SyntaxWarning: 'is not' with a literal. Did you mean '!='?
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Nov 25, 2019
1 parent 298b80c commit fb43b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/PartDesign/WizardShaft/Shaft.py
Expand Up @@ -88,7 +88,7 @@ def addSegment(self, l, d, di):
# We don't call equilibrium() here because the new segment has no constraints defined yet
# Fix face reference of fixed segment if it is the last one
for i in range(1, len(self.segments)):
if self.segments[i].constraintType is not "Fixed":
if self.segments[i].constraintType != "Fixed":
continue
if i == len(self.segments) - 1:
self.segments[index].constraint.References = [( self.feature.feature, "Face%u" % (2 * (index+1) + 1) )]
Expand Down

0 comments on commit fb43b00

Please sign in to comment.