Run 2to3 utility

This commit is contained in:
Moritz Lell 2019-10-27 14:19:50 +01:00
commit 491040ea72
12 changed files with 26 additions and 26 deletions

View file

@ -102,7 +102,7 @@ def catlog(t):
if not f:
try:
f = open(logname)
except IOError, e:
except IOError as e:
if e.errno == errno.ENOENT:
# ignore files without logs
pass
@ -231,7 +231,7 @@ def catlog(t):
status = None
if line_head:
# partial line never got terminated
print line_head
print(line_head)
if t != '-':
assert depth[-1] == t
depth.pop(-1)
@ -274,7 +274,7 @@ def main():
catlog(t)
except KeyboardInterrupt:
sys.exit(200)
except IOError, e:
except IOError as e:
if e.errno == errno.EPIPE:
pass
else: