mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Update configparser docs for lowercasing rename.
This commit is contained in:
parent
e3a23c0734
commit
0a11f96f67
3 changed files with 14 additions and 8 deletions
|
@ -1,14 +1,20 @@
|
||||||
|
|
||||||
:mod:`ConfigParser` --- Configuration file parser
|
:mod:`ConfigParser` --- Configuration file parser
|
||||||
=================================================
|
=================================================
|
||||||
|
|
||||||
.. module:: ConfigParser
|
.. module:: ConfigParser
|
||||||
|
:synopsis: Old name for the configparser module.
|
||||||
|
|
||||||
|
.. module:: configparser
|
||||||
:synopsis: Configuration file parser.
|
:synopsis: Configuration file parser.
|
||||||
.. moduleauthor:: Ken Manheimer <klm@zope.com>
|
.. moduleauthor:: Ken Manheimer <klm@zope.com>
|
||||||
.. moduleauthor:: Barry Warsaw <bwarsaw@python.org>
|
.. moduleauthor:: Barry Warsaw <bwarsaw@python.org>
|
||||||
.. moduleauthor:: Eric S. Raymond <esr@thyrsus.com>
|
.. moduleauthor:: Eric S. Raymond <esr@thyrsus.com>
|
||||||
.. sectionauthor:: Christopher G. Petrilli <petrilli@amber.org>
|
.. sectionauthor:: Christopher G. Petrilli <petrilli@amber.org>
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
The :mod:`ConfigParser` module has been renamed to :mod:`configparser` in
|
||||||
|
Python 3.0. It is importable under both names in Python 2.6 and the rest of
|
||||||
|
the 2.x series.
|
||||||
|
|
||||||
.. index::
|
.. index::
|
||||||
pair: .ini; file
|
pair: .ini; file
|
||||||
|
|
|
@ -2240,12 +2240,12 @@ in :mod:`logging` itself) and defining handlers which are declared either in
|
||||||
|
|
||||||
.. function:: fileConfig(fname[, defaults])
|
.. function:: fileConfig(fname[, defaults])
|
||||||
|
|
||||||
Reads the logging configuration from a ConfigParser-format file named *fname*.
|
Reads the logging configuration from a :mod:`configparser`\-format file named
|
||||||
This function can be called several times from an application, allowing an end
|
*fname*. This function can be called several times from an application,
|
||||||
user the ability to select from various pre-canned configurations (if the
|
allowing an end user the ability to select from various pre-canned
|
||||||
developer provides a mechanism to present the choices and load the chosen
|
configurations (if the developer provides a mechanism to present the choices
|
||||||
configuration). Defaults to be passed to ConfigParser can be specified in the
|
and load the chosen configuration). Defaults to be passed to the ConfigParser
|
||||||
*defaults* argument.
|
can be specified in the *defaults* argument.
|
||||||
|
|
||||||
|
|
||||||
.. function:: listen([port])
|
.. function:: listen([port])
|
||||||
|
|
|
@ -63,7 +63,7 @@ The :mod:`shlex` module defines the following class:
|
||||||
|
|
||||||
.. seealso::
|
.. seealso::
|
||||||
|
|
||||||
Module :mod:`ConfigParser`
|
Module :mod:`configparser`
|
||||||
Parser for configuration files similar to the Windows :file:`.ini` files.
|
Parser for configuration files similar to the Windows :file:`.ini` files.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue