Skip to content

Commit

Permalink
Fixup Patch Splitting script to conform to Python 3 syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Jul 12, 2017
1 parent b911db0 commit 2e83c04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/scripts/commands/patchsplitter.py
Expand Up @@ -193,7 +193,7 @@ def getSelectedVertsLine(patch, patchdata):
lineType, lineNum = None, None
while (not lineType) and mintolerance <= tolerance <= maxtolerance:
try:
print 'Patch Splitter: Trying to identify selected verts with tolerance %0.2f' % tolerance
print('Patch Splitter: Trying to identify selected verts with tolerance %0.2f' % tolerance)
lineType, lineNum = attemptGetVertsLine(patch, tolerance) # has side effects that can't be fixed till search \
except TooManyVerts: # \ is finished, as the fix clears the user's selection
tolerance /= 2.0
Expand Down Expand Up @@ -221,7 +221,7 @@ def getSelectedVertsLine(patch, patchdata):

# STEP 2: Work out what row or column is selected
lineType, lineNum = getSelectedVertsLine(patch, patchdata)
print 'RESULT: ', lineType, lineNum
print('RESULT: ', lineType, lineNum)

# STEP 3: Split the patch
newpatch = clonePatch(patch)
Expand Down

0 comments on commit 2e83c04

Please sign in to comment.