From a97fa2221c018975f796b0a6bf4aad3adae9ac15 Mon Sep 17 00:00:00 2001 From: Nico Tonnhofer Date: Thu, 10 Jan 2019 22:48:46 +0100 Subject: [PATCH] python3: using file objects file() was removed with python3 --- configtool/board.py | 2 +- configtool/printer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configtool/board.py b/configtool/board.py index 25ba6cf..de16ba2 100644 --- a/configtool/board.py +++ b/configtool/board.py @@ -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 diff --git a/configtool/printer.py b/configtool/printer.py index a7e7ae8..9b35e26 100644 --- a/configtool/printer.py +++ b/configtool/printer.py @@ -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: