Message325003
Ah my bad again. The config.optionxform = str does the trick. I was using an older object.
from configparser import ConfigParser
config = ConfigParser(allow_no_value=True)
config.optionxform = str
config.add_section('default_settings')
config.set('default_settings', '; comment HERE')
with open('example_case.ini', 'w') as configfile: config.write(configfile)
with open('example_case.ini', 'r') as configfile: print(configfile.read())
Thanks |
|
Date |
User |
Action |
Args |
2018-09-11 11:38:37 | xtreak | set | recipients:
+ xtreak, philippewagnieres@hispeed.ch |
2018-09-11 11:38:37 | xtreak | set | messageid: <1536665917.33.0.0269046726804.issue31535@psf.upfronthosting.co.za> |
2018-09-11 11:38:37 | xtreak | link | issue31535 messages |
2018-09-11 11:38:37 | xtreak | create | |
|