chnaged teh default from binary to text mode

seams like open was defaulting to text mode, since now is specified in clear i made sure it matches with teh previous default
This commit is contained in:
MirceaDan committed 2018-12-01 17:43:19 -08:00
1 parent b6e49b59a7
commit c623e90ebc
23 files changed
+42 -42

No files matched your search

@@ -1107,7 +1107,7 @@ class VirtualPrinter(object):
handle = None
try:
handle = io.open(file, 'wb')
handle = io.open(file, 'wt', encoding='utf-8')
except:
self._output("error writing to file")
if handle is not None:
@@ -1134,7 +1134,7 @@ class VirtualPrinter(object):
def _sdPrintingWorker(self):
self._selectedSdFilePos = 0
try:
with io.open(self._selectedSdFile, 'rb') as f:
with io.open(self._selectedSdFile, 'rt', encoding='utf-8') as f:
for line in iter(f.readline, ""):
if self._killed or not self._sdPrinting:
break