ConnectionAbortedError

exception ConnectionAbortedError A subclass of ConnectionError, raised when a connection attempt is aborted by the peer. Corresponds to errno ECONNABORTED.

configparser.ParsingError

exception configparser.ParsingError Exception raised when errors occur attempting to parse a file. Changed in version 3.2: The filename attribute and __init__() argument were renamed to source for consistency.

configparser.RawConfigParser.set()

set(section, option, value) If the given section exists, set the given option to the specified value; otherwise raise NoSectionError. While it is possible to use RawConfigParser (or ConfigParser with raw parameters set to true) for internal storage of non-string values, full functionality (including interpolation and output to files) can only be achieved using string values. This method lets users assign non-string values to keys internally. This behaviour is unsupported and will cause error

configparser.InterpolationSyntaxError

exception configparser.InterpolationSyntaxError Exception raised when the source text into which substitutions are made does not conform to the required syntax. Subclass of InterpolationError.

configparser.MissingSectionHeaderError

exception configparser.MissingSectionHeaderError Exception raised when attempting to parse a file which has no section headers.

configparser.NoSectionError

exception configparser.NoSectionError Exception raised when a specified section is not found.

configparser.optionxform()

configparser.optionxform(option) This method transforms option names on every read, get, or set operation. The default converts the name to lowercase. This also means that when a configuration file gets written, all keys will be lowercase. Override this method if that’s unsuitable. For example: >>> config = """ ... [Section1] ... Key = Value ... ... [Section2] ... AnotherKey = Value ... """ >>> typical = configparser.ConfigParser() >>> typical.read_string(config) &

configparser.NoOptionError

exception configparser.NoOptionError Exception raised when a specified option is not found in the specified section.

configparser.InterpolationMissingOptionError

exception configparser.InterpolationMissingOptionError Exception raised when an option referenced from a value does not exist. Subclass of InterpolationError.

configparser.ExtendedInterpolation

class configparser.ExtendedInterpolation An alternative handler for interpolation which implements a more advanced syntax, used for instance in zc.buildout. Extended interpolation is using ${section:option} to denote a value from a foreign section. Interpolation can span multiple levels. For convenience, if the section: part is omitted, interpolation defaults to the current section (and possibly the default values from the special section). For example, the configuration specified above with