iwla

iwla Commit Details

Date:2021-06-04 09:10:50 (1 month 25 days ago)
Author:Grégory Soutadé
Branch:dev
Commit:f149baed70353fdfefaefbfc3744bd6d4c9b963d
Parents: 937706d88d8b818c17f33d5d1cf18d095c3eab73
Message:Fix error: open log file in text mode to avoid doing str conversion and get some bytes result

Changes:
Miwla.py (2 diffs)

File differences

iwla.py
788788
789789
790790
791
791
792792
793793
794794
......
828828
829829
830830
831
831
832832
833
833
834834
835835
836836
for l in _file:
# print "line " + l
groups = self.log_re.match(str(l))
groups = self.log_re.match(l)
if groups:
self._newHit(groups.groupdict(""))
raise StopIteration()
filename = self.filenames.pop(0)
if filename.endswith('gz'):
self.cur_file = gzip.open(filename, 'r')
self.cur_file = gzip.open(filename, 'rt')
else:
self.cur_file = open(filename)
self.cur_file = open(filename, 'rt')
def next(self):
l = self.cur_file.readline()

Archive Download the corresponding diff file

Branches

Tags