• Guido van Rossum's avatar
    Apply modified SF patch 467580: ConfigParser.getboolean(): FALSE, TRUE. · fb06f75c
    Guido van Rossum yazdı
        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.]
    fb06f75c
ConfigParser.py 16.8 KB