summaryrefslogtreecommitdiff
path: root/common/stdlog.py
diff options
context:
space:
mode:
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):