summaryrefslogtreecommitdiffstats
path: root/Lib/configparser.py
diff options
context:
space:
mode:
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)
commit29050d7317f8ea312bcfb9967a307428ce28fc84 (patch)
tree37ad8501754ff8646cc08ca2e964bbc181cb9e41 /Lib/configparser.py
parent0abb8b74d911607d8535bd79a042918295627454 (diff)
parentdaab1c80928108a3b2ddf19c0245fe15af1b1fd3 (diff)
downloadcpython-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.py8
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: