class documentation

class ConfigParser(RawConfigParser): (source)

Constructor: ConfigParser(*args, **kwargs)

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.

Wrapper around sys.stderr catching en-/decoding errors