summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2017-01-29 23:37:50 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2017-01-29 23:37:50 (GMT)
commitd5feb497114c855f2da4dbd0905927cf6fd5515c (patch)
treeb0d49a00266ef47e51b921a1909c53f5a813ef8c /Doc
parentba964cc5f73a5270adc2098d3ca3717794315f6e (diff)
parente334a53343437a1bf2168eef1f8d57504bf52cfa (diff)
downloadcpython-d5feb497114c855f2da4dbd0905927cf6fd5515c.zip
cpython-d5feb497114c855f2da4dbd0905927cf6fd5515c.tar.gz
cpython-d5feb497114c855f2da4dbd0905927cf6fd5515c.tar.bz2
Issues #11670: Merge configparser doc from 3.6
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/configparser.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/library/configparser.rst b/Doc/library/configparser.rst
index 8d141a2..e09562d 100644
--- a/Doc/library/configparser.rst
+++ b/Doc/library/configparser.rst
@@ -1161,20 +1161,20 @@ ConfigParser Objects
Use :meth:`read_file` instead.
.. versionchanged:: 3.2
- :meth:`readfp` now iterates on *f* instead of calling ``f.readline()``.
+ :meth:`readfp` now iterates on *fp* instead of calling ``fp.readline()``.
For existing code calling :meth:`readfp` with arguments which don't
support iteration, the following generator may be used as a wrapper
around the file-like object::
- def readline_generator(f):
- line = f.readline()
+ def readline_generator(fp):
+ line = fp.readline()
while line:
yield line
- line = f.readline()
+ line = fp.readline()
- Instead of ``parser.readfp(f)`` use
- ``parser.read_file(readline_generator(f))``.
+ Instead of ``parser.readfp(fp)`` use
+ ``parser.read_file(readline_generator(fp))``.
.. data:: MAX_INTERPOLATION_DEPTH