class documentation
class ConfigParser(configparser.RawConfigParser): (source)
Parser for Docutils configuration files. See https://docutils.sourceforge.io/docs/user/config.html. Option key normalization includes conversion of '-' to '_'. Config file encoding is "utf-8". Encoding errors are reported and the affected file(s) skipped. This class is provisional and will change in future versions.
Method | get |
Return a given section as a dictionary. |
Method | handle |
Undocumented |
Method | optionxform |
Lowercase and transform '-' to '_'. |
Method | read |
Undocumented |
Method | validate |
Call the validator function and implement overrides on all applicable settings. |
Class Variable | not |
Undocumented |
Class Variable | old |
{old setting: (new section, new setting)} mapping, used by `handle_old_config`, to convert settings from the old [options] section. |
Class Variable | old |
Undocumented |
Return a given section as a dictionary. Return empty dictionary if the section doesn't exist. Deprecated. Use the configparser "Mapping Protocol Access" and catch KeyError.
Lowercase and transform '-' to '_'. So the cmdline form of option names can be used in config files.