Make the import file explicitly mode='rt'

This commit is contained in:
Veronica K. B. Olsen
2019-10-23 21:13:51 +02:00
parent 558af9f329
commit e4b36a8646
+1 -1
View File
@@ -388,7 +388,7 @@ class GuiMain(QMainWindow):
theText = None
try:
with open(loadFile,mode="r") as inFile:
with open(loadFile,mode="rt") as inFile:
theText = inFile.read()
except Exception as e:
self.makeAlert(["Could not read file. The file cannot be a binary file.",str(e)], nwAlert.ERROR)