MiRCARTCanvasImportStore.py:importTextFile(): correctly open() pathName w/ encoding="utf-8" (via munki.)

This commit is contained in:
Lucio Andrés Illanes Albornoz 2018-06-22 11:38:47 +02:00
parent 8b483e262e
commit 7a1ec135b2

View File

@ -70,7 +70,7 @@ class MiRCARTCanvasImportStore():
# }}} # }}}
# {{{ importTextFile(self, pathName): XXX # {{{ importTextFile(self, pathName): XXX
def importTextFile(self, pathName): def importTextFile(self, pathName):
self.inFile = open(pathName, "r") self.inFile = open(pathName, "r", encoding="utf-8")
self.inSize = self.outMap = None; self.inSize = self.outMap = None;
inCurColourSpec = ""; inCurRow = -1; inCurColourSpec = ""; inCurRow = -1;
inLine = self.inFile.readline() inLine = self.inFile.readline()