summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-10-04 19:58:46 (GMT)
committerGuido van Rossum <guido@python.org>2001-10-04 19:58:46 (GMT)
commitfb06f75c5ac24c720aaf8f221efff35543d878b6 (patch)
tree8a25dcc2d81a2b943c7fe20b99fcf1a36e1bdb29 /Python
parent266410355f7faa7c98b29a16b9f50c56a9224f4b (diff)
downloadcpython-fb06f75c5ac24c720aaf8f221efff35543d878b6.zip
cpython-fb06f75c5ac24c720aaf8f221efff35543d878b6.tar.gz
cpython-fb06f75c5ac24c720aaf8f221efff35543d878b6.tar.bz2
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.]
Diffstat (limited to 'Python')
0 files changed, 0 insertions, 0 deletions