Creates a new ConfigParser.SafeConfigParser and tries parsing all filepaths given.
filepaths should be a list of filenames.
Returns nothing, instead assigns itself to the global variable configuration and abstracts itself by calling create_abstractions()
Creates a new ConfigParser.SafeConfigParser and passes it the same filenames as given in the last call to load_configuration().
This effectively ‘reloads’ the configuration files.
Bases: object
A timed switch. Evaluates truthy if the time has expired, else falsy.
>>> import time
>>> a = Switch(5)
>>> bool(a)
False
>>> time.sleep(5)
>>> bool(a)
True
This function tries to guess the correct encoding of metadata
Note
This function also calls an unconditional metadata.strip() before returning the new string.
Parameters: | metadata (bytes) – A sequence in an unknown encoding. |
---|---|
Returns unicode: | |
An unicode string. |