Cleanup: unused variables

This commit is contained in:
2018-10-25 12:03:34 +11:00
parent bf34f95a9e
commit 23fdac8672
10 changed files with 12 additions and 21 deletions

View File

@@ -1521,7 +1521,6 @@ class WM_OT_copy_prev_settings(Operator):
return os.path.isfile(old_userpref) and not os.path.isfile(new_userpref)
def execute(self, context):
import os
import shutil
shutil.copytree(self._old_path(), self._new_path(), symlinks=True)
@@ -2204,7 +2203,7 @@ class WM_OT_addon_remove(Operator):
# lame confirmation check
def draw(self, context):
self.layout.label(text="Remove Add-on: %r?" % self.module)
path, isdir = WM_OT_addon_remove.path_from_addon(self.module)
path, _isdir = WM_OT_addon_remove.path_from_addon(self.module)
self.layout.label(text="Path: %r" % path)
def invoke(self, context, event):