python 2/3 portability changes for log class from Pizza.py

This commit is contained in:
Axel Kohlmeyer
2022-08-20 21:42:45 -04:00
parent 057dff375c
commit 1f37087156
2 changed files with 38 additions and 32 deletions

View File

@ -319,8 +319,8 @@ class dump:
# if fail, try next file
# if new snapshot time stamp already exists, read next snapshot
while 1:
f = open(self.flist[self.nextfile],'rb')
while True:
f = open(self.flist[self.nextfile],'r')
f.seek(self.eof)
snap = self.read_snapshot(f)
if not snap: