diff options
| author | Greg Ward <gward@python.net> | 2000-09-25 01:23:52 +0000 | 
|---|---|---|
| committer | Greg Ward <gward@python.net> | 2000-09-25 01:23:52 +0000 | 
| commit | ceb9e226a638301e68420d7b6728bdc86fd30f0c (patch) | |
| tree | bfa4fcb980c23b2490404c0e605652443d12ef60 /Lib/calendar.py | |
| parent | 84da8aa7e2f1bdaf8692dbfd9981430c84278038 (diff) | |
| download | cpython-git-ceb9e226a638301e68420d7b6728bdc86fd30f0c.tar.gz | |
Fixed some bugs and mis-features in handling config files:
  * options can now be spelled "foo-bar" or "foo_bar" (handled in
    'parse_config_files()', just after we parse a file)
  * added a "[global]" section so there's a place to set global
    options like verbose/quiet and dry-run
  * respect the "negative alias" dictionary so (eg.) "quiet=1" is
    the same as "verbose=0" (this had to be done twice: once in
    'parse_config_file()' for global options, and once in
    '_set_command_options()' for per-command options)
  * the other half of handling boolean options correctly: allow
    commands to list their boolean options in a 'boolean_options'
    class attribute, and use it to translate strings (like "yes", "1",
    "no", "0", etc) to true or false
Diffstat (limited to 'Lib/calendar.py')
0 files changed, 0 insertions, 0 deletions
