From c23b138ed72d794521b19ff7d8076b32b0b7bf46 Mon Sep 17 00:00:00 2001 From: Diego Roversi Date: Sun, 8 Sep 2019 22:05:57 +0200 Subject: 2to3 --- common/stdlog.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common/stdlog.py') diff --git a/common/stdlog.py b/common/stdlog.py index 3d8063c..4abc280 100644 --- a/common/stdlog.py +++ b/common/stdlog.py @@ -24,7 +24,7 @@ class LogFile: self.f.close() self.f = None - def __nonzero__(self): + def __bool__(self): return self.f is not None def _open(self, filename): @@ -42,8 +42,8 @@ class LogFile: return 0 self.filename = filename if self.f.tell() > 0: - print >> self.f - print >> self.f, '='*44 + print(file=self.f) + print('='*44, file=self.f) return 1 def _check(self): -- cgit v1.2.3