From 0446ac89e542991fa4bf41748ee11c7c5f155145 Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Fri, 3 Nov 2017 11:43:55 +0100 Subject: [PATCH] Revert "work around encoding errors with chinese text in check response" This reverts commit 79357d7fddbde9384aadba9408d6ca1a4c81f948. --- tcllib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcllib.py b/tcllib.py index 99375f4..82437a8 100644 --- a/tcllib.py +++ b/tcllib.py @@ -145,7 +145,7 @@ class FotaCheck: except OSError as e: if e.errno != errno.EEXIST: raise - with open(outfile, "w", encoding="utf-8") as f: + with open(outfile, "w") as f: f.write(data) def do_check(self, https=True, timeout=10, max_tries=5):