I am reading a config file with Python's ConfigParser (Python 3.4). My values are all integers, e.g.
key1 = 11
key2 = 22
When I write the config file, after having read it into a Config object, with
with open('settings.ini', 'w') as configfile:
Config.write(configfile)
my file ends up looking like this:
key1 = ['11']
key2 = ['22']
Why is the file being written like this, and not as it originally was?
key1 = 11
key2 = 22