python3: using file objects

file() was removed with python3
This commit is contained in:
Nico Tonnhofer 2019-01-10 22:48:46 +01:00
parent 6089d24bd1
commit a97fa2221c
2 changed files with 2 additions and 2 deletions

View File

@ -378,7 +378,7 @@ class Board:
if self.settings.verbose >= 2:
print(values)
fp = file(path, "w")
fp = open(path, "w")
self.configFile = path
skipToSensorEnd = False

View File

@ -206,7 +206,7 @@ class Printer:
if self.settings.verbose >= 2:
print(values)
fp = file(path, "w")
fp = open(path, "w")
self.configFile = path
for ln in self.cfgBuffer: