Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianpueyo committed Jan 15, 2024
1 parent 976575e commit 96279ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions KnobScripter/knob_scripter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

import os
import json
#import six
import io

from nukescripts import panels
Expand All @@ -37,7 +36,6 @@ def symlink_ms(source, link_name):
except AttributeError:
pass


os.symlink = symlink_ms

try:
Expand Down
4 changes: 2 additions & 2 deletions KnobScripter/ksscripteditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def unindentBackspace(self):
# snap to previous indent level
spaces = len(text_in_front)

for space in range(int(spaces - int(float(spaces - 1) / self.tab_spaces) * self.tab_spaces - 1)):
for space in range(int(spaces - int(float(spaces - 1) // self.tab_spaces) * self.tab_spaces - 1)):
self.cursor.deletePreviousChar()

def indentNewLine(self):
Expand All @@ -436,7 +436,7 @@ def indentNewLine(self):
else:
break

indent_level /= self.tab_spaces
indent_level //= self.tab_spaces

# find out whether text_in_front's last character was a ':'
# if that's the case add another indent.
Expand Down

0 comments on commit 96279ef

Please sign in to comment.