This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lukasz.langa
Recipients Arfrever, lukasz.langa, python-dev
Date 2013-06-23.17:15:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1372007709.74.0.766254714543.issue18260@psf.upfronthosting.co.za>
In-reply-to
Content
1. Duplicate sections and options are consciously reported as errors now. This is a documented backwards-incompatible change [1]_. If you wish to revert to previous behaviour, you can set strict=False on parser creation.

2. It's really just a coincidence that specifying the filename as bytes worked in this case before on Python 3. That being said, it is indeed an unfortunate regression and was fixed in 56c1227f21f5 for 3.3 and 06e70937364b for 3.4. As a workaround for Python versions < 3.3.3 you can specify the source name as a Unicode string (e.g. `read_file(f, source=path_str)`.


.. [1] http://docs.python.org/3/library/configparser.html#customizing-parser-behaviour
History
Date User Action Args
2013-06-23 17:15:09lukasz.langasetrecipients: + lukasz.langa, Arfrever, python-dev
2013-06-23 17:15:09lukasz.langasetmessageid: <1372007709.74.0.766254714543.issue18260@psf.upfronthosting.co.za>
2013-06-23 17:15:09lukasz.langalinkissue18260 messages
2013-06-23 17:15:09lukasz.langacreate