File: test.py

package info (click to toggle)
inifile 0.4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 104 kB
  • sloc: python: 435; makefile: 4
file content (7 lines) | stat: -rw-r--r-- 150 bytes parent folder | download
1
2
3
4
5
6
7
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()