From daab1c80928108a3b2ddf19c0245fe15af1b1fd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Langa?= Date: Wed, 27 Apr 2011 18:10:05 +0200 Subject: Closes #11670: configparser read_file now iterates over f. --- Lib/configparser.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Lib/configparser.py') diff --git a/Lib/configparser.py b/Lib/configparser.py index 1bfdac899c..edef4f8ec0 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: -- cgit v1.2.1