Skip to content

Commit

Permalink
bpo-35838: document optionxform must be idempotent (GH-12656)
Browse files Browse the repository at this point in the history
(cherry picked from commit 04694a3)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
  • Loading branch information
miss-islington and methane committed Apr 2, 2019
1 parent 5ca4fe0 commit 9a838c5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Doc/library/configparser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,12 @@ be overridden by subclasses or by attribute assignment.
>>> list(custom['Section2'].keys())
['AnotherKey']

.. note::
The optionxform function transforms option names to a canonical form.
This should be an idempotent function: if the name is already in
canonical form, it should be returned unchanged.


.. attribute:: ConfigParser.SECTCRE

A compiled regular expression used to parse section headers. The default
Expand Down

0 comments on commit 9a838c5

Please sign in to comment.