# HG changeset patch # User Paul Boddie # Date 1371859400 -7200 # Node ID be6c1d064a1dc370a399dca1482c3398b8941e64 # Parent 6445dacce32e30823c9ed05ded9d209fa62ce0bf Fixed infinite loop caused by carriage return at end of input. diff -r 6445dacce32e -r be6c1d064a1d vContent.py --- a/vContent.py Sat Jun 15 02:30:04 2013 +0200 +++ b/vContent.py Sat Jun 22 02:03:20 2013 +0200 @@ -104,7 +104,10 @@ # Sanity check for broken lines (\r instead of \r\n or \n). line = self.f.readline() while line.endswith("\r") and not self.non_standard_newline: - line += self.f.readline() + s = self.f.readline() + if not s: + break + line += s if line.endswith("\r") and self.non_standard_newline: return line + "\n" else: