--- C:/Python27/Lib/ConfigParser.py.bak Thu May 07 17:38:31 2015 +++ C:/Python27/Lib/ConfigParser.py Thu May 07 17:39:02 2015 @@ -541,9 +541,6 @@ if not e: e = ParsingError(fpname) e.append(lineno, repr(line)) - # if any parsing errors occurred, raise an exception - if e: - raise e # join the multi-line values collected while reading all_sections = [self._defaults] @@ -552,6 +549,10 @@ for name, val in options.items(): if isinstance(val, list): options[name] = '\n'.join(val) + + # if any parsing errors occurred, raise an exception + if e: + raise e import UserDict as _UserDict