Mercurial > hgrepos > Python > libs > ConfigMix
changeset 151:c46b0f82922a
FIX: INIConfigParser.read_file(): correctly document the requirements for the file argument for different Python versions
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Sat, 14 Apr 2018 17:11:41 +0200 |
| parents | 0ac6ffae969f |
| children | 139fb1d1ef54 |
| files | configmix/ini.py |
| diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configmix/ini.py Sat Apr 14 12:54:54 2018 +0200 +++ b/configmix/ini.py Sat Apr 14 17:11:41 2018 +0200 @@ -76,7 +76,8 @@ def read_file(self, fp, filename): """Read from a file-like object `fp`. - The `fp` argument must be iterable. + The `fp` argument must be iterable (Python 3.2+) or have a + `readline()` method (Python 2, <3.2). """ if hasattr(self, "filename"):
