From 95fb9dfb278ca9a010a787d5014ef32899ffa988 Mon Sep 17 00:00:00 2001 From: Syres916 <46537884+Syres916@users.noreply.github.com> Date: Fri, 14 Jun 2024 15:01:20 +0100 Subject: [PATCH] [Part] Attachment Editor correct Python 2 reference --- src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py b/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py index 5c2f4e8ab5..fbcb6f4fd8 100644 --- a/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py +++ b/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py @@ -66,7 +66,7 @@ def linkSubList_convertToOldStyle(references): result.append((tup[0], subname)) if len(tup[1]) == 0: result.append((tup[0], '')) - elif isinstance(tup[1],basestring): + elif isinstance(tup[1],str): # old style references, no conversion required result.append(tup) return result