Index: Lib/ConfigParser.py =================================================================== --- Lib/ConfigParser.py (revision 55600) +++ Lib/ConfigParser.py (working copy) @@ -441,10 +441,7 @@ optname = None lineno = 0 e = None # None, or an exception - while True: - line = fp.readline() - if not line: - break + for line in fp: lineno = lineno + 1 # comment or blank line? if line.strip() == '' or line[0] in '#;':