Message96457
If config.ini file is encoded with utf-8 with bom markers this code
import ConfigParser
config = ConfigParser.ConfigParser()
config.read("config.ini")
config.sections()
throws:
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: config.ini, line: 1
'\xef\xbb\xbf[section]\n'
ConfigParser should be able to read such files. |
|
Date |
User |
Action |
Args |
2009-12-15 19:29:17 | grego87 | set | recipients:
+ grego87 |
2009-12-15 19:29:17 | grego87 | set | messageid: <1260905357.88.0.211998340765.issue7519@psf.upfronthosting.co.za> |
2009-12-15 19:29:16 | grego87 | link | issue7519 messages |
2009-12-15 19:29:16 | grego87 | create | |
|