# HG changeset patch # User Franz Glasner # Date 1523718701 -7200 # Node ID c46b0f82922a1e32825e0ef794a1b89940e9aa2b # Parent 0ac6ffae969f8226c8938a2d5f7d0cba35f67ddc FIX: INIConfigParser.read_file(): correctly document the requirements for the file argument for different Python versions diff -r 0ac6ffae969f -r c46b0f82922a configmix/ini.py --- 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"):