class documentation

class ConfigParser(RawConfigParser): (source)

View In Hierarchy

Undocumented

Method __init__ Undocumented
Method get​_section Return a given section as a dictionary (empty if the section doesn't exist).
Method handle​_old​_config Undocumented
Method optionxform Transform '-' to '_' so the cmdline form of option names can be used.
Method read Undocumented
Method validate​_settings Call the validator function and implement overrides on all applicable settings.
Class Variable not​_utf8​_error Undocumented
Class Variable old​_settings {old setting: (new section, new setting)} mapping, used by handle_old_config, to convert settings from the old [options] section.
Class Variable old​_warning Undocumented
Instance Variable _files List of paths of configuration files read.
Instance Variable _stderr Wrapper around sys.stderr catching en-/decoding errors
def __init__(self, *args, **kwargs): (source)

Undocumented

def get_section(self, section): (source)
Return a given section as a dictionary (empty if the section doesn't exist).
def handle_old_config(self, filename): (source)

Undocumented

def optionxform(self, optionstr): (source)
Transform '-' to '_' so the cmdline form of option names can be used.
def read(self, filenames, option_parser): (source)

Undocumented

def validate_settings(self, filename, option_parser): (source)
Call the validator function and implement overrides on all applicable settings.
not_utf8_error: str = (source)

Undocumented

old_settings: dict = (source)
{old setting: (new section, new setting)} mapping, used by handle_old_config, to convert settings from the old [options] section.
old_warning: str = (source)

Undocumented

_files: list = (source)
List of paths of configuration files read.
_stderr = (source)
Wrapper around sys.stderr catching en-/decoding errors