Georgij Kondratjev added the comment: Sorry, while debugging there was no 'b': --- line = self.fp.readline() +print(' ***', line) i = line.find(";") --- __________________________________ Tracker <report at bugs.python.org> <http://bugs.python.org/issue1929> __________________________________