From 96279ef9795564ab80ac029fbfdcaad059ec8226 Mon Sep 17 00:00:00 2001 From: Adrian Pueyo Date: Mon, 15 Jan 2024 10:37:30 +0100 Subject: [PATCH] Minor fixes --- KnobScripter/knob_scripter.py | 2 -- KnobScripter/ksscripteditor.py | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/KnobScripter/knob_scripter.py b/KnobScripter/knob_scripter.py index b23155a..58706b6 100644 --- a/KnobScripter/knob_scripter.py +++ b/KnobScripter/knob_scripter.py @@ -11,7 +11,6 @@ import os import json -#import six import io from nukescripts import panels @@ -37,7 +36,6 @@ def symlink_ms(source, link_name): except AttributeError: pass - os.symlink = symlink_ms try: diff --git a/KnobScripter/ksscripteditor.py b/KnobScripter/ksscripteditor.py index 16c7859..2ee8aa3 100644 --- a/KnobScripter/ksscripteditor.py +++ b/KnobScripter/ksscripteditor.py @@ -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): @@ -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.