summaryrefslogtreecommitdiff
path: root/common/stdlog.py
diff options
context:
space:
mode:
authorDiego Roversi <diegor@tiscali.it>2019-09-08 22:05:57 +0200
committerDiego Roversi <diegor@tiscali.it>2019-09-08 22:05:57 +0200
commitc23b138ed72d794521b19ff7d8076b32b0b7bf46 (patch)
treec8e82a4ca4da05ba1ad28d4ff64a157bc1eb7952 /common/stdlog.py
parent1d9925c287b318ec21343e2682b51ab6a36ae8db (diff)
2to3
Diffstat (limited to 'common/stdlog.py')
-rw-r--r--common/stdlog.py6
1 files changed, 3 insertions, 3 deletions
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):