From 603b19d7c811e50542cd2b2bc7869e707a9ac11b Mon Sep 17 00:00:00 2001 From: Tobias Bossert Date: Thu, 25 Jun 2020 12:20:45 +0000 Subject: [PATCH] Fixed import from XLSX files since getText() already returns a string, the encode() function results in a byte object which is not compatible with setAlias(). --- src/Mod/Spreadsheet/importXLSX.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Spreadsheet/importXLSX.py b/src/Mod/Spreadsheet/importXLSX.py index 2070b2a0f6..654fd7c225 100644 --- a/src/Mod/Spreadsheet/importXLSX.py +++ b/src/Mod/Spreadsheet/importXLSX.py @@ -407,7 +407,7 @@ def handleWorkBook(theBook, sheetDict, Doc): #print('Sheet Name: ', refList[0]) #print('Adress: ', adressList[0] + adressList[1]) actSheet, sheetFile = sheetDict[refList[0]] - actSheet.setAlias(adressList[0]+adressList[1], aliasName.encode('utf8')) + actSheet.setAlias(adressList[0]+adressList[1], aliasName) def handleStrings(theStr, sList): print('process Strings: ')