]> granicus.if.org Git - python/commit
Apply modified SF patch 467580: ConfigParser.getboolean(): FALSE, TRUE.
authorGuido van Rossum <guido@python.org>
Thu, 4 Oct 2001 19:58:46 +0000 (19:58 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 4 Oct 2001 19:58:46 +0000 (19:58 +0000)
commitfb06f75c5ac24c720aaf8f221efff35543d878b6
tree8a25dcc2d81a2b943c7fe20b99fcf1a36e1bdb29
parent266410355f7faa7c98b29a16b9f50c56a9224f4b
Apply modified SF patch 467580: ConfigParser.getboolean(): FALSE, TRUE.

    This patch allows ConfigParser.getboolean() to interpret TRUE,
    FALSE, YES, NO, ON and OFF instead just '0' and '1'.

    While just allowing '0' and '1' sounds more correct users often
    demand to use more descriptive directives in configuration
    files. Instead of forcing every programmer do brew his own
    solution a system should include the batteries for this.

[My modification to the patch is a slight rewording of the docstring
and use of lowercase instead of uppercase templates.  The code is
still case sensitive. GvR.]
Lib/ConfigParser.py