python3: open file in normal mode, not binary

This commit is contained in:
Nico Tonnhofer 2019-01-10 22:48:42 +01:00
parent d6e30af1c2
commit 48cc0124ed
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ class ThermistorTableFile:
self.error = False self.error = False
fn = os.path.join(folder, "thermistortable.h") fn = os.path.join(folder, "thermistortable.h")
try: try:
self.fp = open(fn, "wb") self.fp = open(fn, "w")
except: except:
self.error = True self.error = True