Christopher Mahan <chris.ma...@gmail.com> added the comment: I added the following two lines and I was able to run the code.
Before: line = fp.readline() if self.debugging > 2: print('*retr*', repr(line)) if not line: break if line[-2:] == CRLF: line = line[:-2] elif line[-1:] == '\n': line = line[:-1] callback(line) After: line = fp.readline() if self.debugging > 2: print('*retr*', repr(line)) if not line: break if line == '': break if line[-2:] == CRLF: line = line[:-2] elif line[-1:] == '\n': line = line[:-1] callback(line) As a patch: 426,427d425 < if line == '': < break What else do I need to do? _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue4791> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com