summaryrefslogtreecommitdiffstats
path: root/Lib/configparser.py
diff options
context:
space:
mode:
authorŁukasz Langa <lukasz@langa.pl>2011-04-27 16:10:05 (GMT)
committerŁukasz Langa <lukasz@langa.pl>2011-04-27 16:10:05 (GMT)
commitdaab1c80928108a3b2ddf19c0245fe15af1b1fd3 (patch)
treea45cada2685b2b8067b975d31649e8d294d60509 /Lib/configparser.py
parent944d16c6c490f5e3933f8a729d810f60d3bab1d3 (diff)
downloadcpython-daab1c80928108a3b2ddf19c0245fe15af1b1fd3.zip
cpython-daab1c80928108a3b2ddf19c0245fe15af1b1fd3.tar.gz
cpython-daab1c80928108a3b2ddf19c0245fe15af1b1fd3.tar.bz2
Closes #11670: configparser read_file now iterates over f.
Diffstat (limited to 'Lib/configparser.py')
-rw-r--r--Lib/configparser.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/configparser.py b/Lib/configparser.py
index 1bfdac8..edef4f8 100644
--- a/Lib/configparser.py
+++ b/Lib/configparser.py
@@ -694,10 +694,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: