diff options
author | Łukasz Langa <lukasz@langa.pl> | 2011-04-27 16:11:50 (GMT) |
---|---|---|
committer | Łukasz Langa <lukasz@langa.pl> | 2011-04-27 16:11:50 (GMT) |
commit | 29050d7317f8ea312bcfb9967a307428ce28fc84 (patch) | |
tree | 37ad8501754ff8646cc08ca2e964bbc181cb9e41 /Lib/configparser.py | |
parent | 0abb8b74d911607d8535bd79a042918295627454 (diff) | |
parent | daab1c80928108a3b2ddf19c0245fe15af1b1fd3 (diff) | |
download | cpython-29050d7317f8ea312bcfb9967a307428ce28fc84.zip cpython-29050d7317f8ea312bcfb9967a307428ce28fc84.tar.gz cpython-29050d7317f8ea312bcfb9967a307428ce28fc84.tar.bz2 |
Merged #11670 from 3.2
Diffstat (limited to 'Lib/configparser.py')
-rw-r--r-- | Lib/configparser.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/configparser.py b/Lib/configparser.py index 15fc266..fe28b13 100644 --- a/Lib/configparser.py +++ b/Lib/configparser.py @@ -695,10 +695,10 @@ class RawConfigParser(MutableMapping): def read_file(self, f, source=None): """Like read() but the argument must be a file-like object. - The `f' argument must have a `readline' method. Optional second - argument is the `source' specifying the name of the file being read. If - not given, it is taken from f.name. If `f' has no `name' attribute, - `<???>' is used. + The `f' argument must be iterable, returning one line at a time. + Optional second argument is the `source' specifying the name of the + file being read. If not given, it is taken from f.name. If `f' has no + `name' attribute, `<???>' is used. """ if source is None: try: |