Author David Ellis
Recipients David Ellis
Date 2017-02-22.18:48:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Trying to use on a pathlib object results in a TypeError. If supplied in a list it works as expected.

    >>> import pathlib, configparser
    >>> configparser.ConfigParser().read(pathlib.Path('some.ini'))

    TypeError: 'PosixPath' object is not iterable

The issue appears to be line 690 which checks for str before attempting to iterate and doesn't check for os.PathLike (or bytes?).

This was actually mentioned as an example where pathlib did not work here:
Date User Action Args
2017-02-22 18:48:55David Ellissetrecipients: + David Ellis
2017-02-22 18:48:55David Ellissetmessageid: <>
2017-02-22 18:48:55David Ellislinkissue29623 messages
2017-02-22 18:48:55David Elliscreate