File test.py of Package python-inifile
from inifile import IniFile i = IniFile('hello.ini') i['foo.bar'] = 'testing more stuff' i['foo.mup'] = 'aha!' print i.get_updated_lines() i.save()
from inifile import IniFile i = IniFile('hello.ini') i['foo.bar'] = 'testing more stuff' i['foo.mup'] = 'aha!' print i.get_updated_lines() i.save()