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 vxgmichel
Recipients vxgmichel
Date 2017-08-30.14:15:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1504102547.11.0.362577067596.issue31307@psf.upfronthosting.co.za>
In-reply-to
Content
Calling `config_parser.read` with `'test'` is equivalent to:

    config_parser.read(['test'])

while calling `config_parser.read` with `b'test'` is treated as:

    config_parser.read([116, 101, 115, 116])

which means python will try to open the file descriptors 101, 115 and 116.

I don't know if byte path should be supported, but this is probably not the expected behavior.

The method code: https://github.com/python/cpython/blob/master/Lib/configparser.py#L678-L702
History
Date User Action Args
2017-08-30 14:15:47vxgmichelsetrecipients: + vxgmichel
2017-08-30 14:15:47vxgmichelsetmessageid: <1504102547.11.0.362577067596.issue31307@psf.upfronthosting.co.za>
2017-08-30 14:15:46vxgmichellinkissue31307 messages
2017-08-30 14:15:46vxgmichelcreate