From: Philippe Guibert Date: Wed, 25 Nov 2020 09:32:51 +0000 (+0000) Subject: topotests: python3, fix error ValueError: can't have unbuffered text I/O X-Git-Tag: base_7.6~205^2~3 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=0e232bb883644c8bf7c82a6f6fbaba91ed5af91a;p=mirror%2Ffrr.git topotests: python3, fix error ValueError: can't have unbuffered text I/O This error occurs when passing some 0 values to open() extra argument. Signed-off-by: Philippe Guibert --- diff --git a/tests/topotests/lib/lutil.py b/tests/topotests/lib/lutil.py index 0b46363edd..dcf1d010b1 100644 --- a/tests/topotests/lib/lutil.py +++ b/tests/topotests/lib/lutil.py @@ -58,14 +58,14 @@ class lUtil: def log(self, str, level=6): if self.l_level > 0: if self.fout == "": - self.fout = open(self.fout_name, "w", 0) + self.fout = open(self.fout_name, "w") self.fout.write(str + "\n") if level <= self.l_level: print(str) def summary(self, str): if self.fsum == "": - self.fsum = open(self.fsum_name, "w", 0) + self.fsum = open(self.fsum_name, "w") self.fsum.write( "\ ******************************************************************************\n"