Message96457
| Author |
grego87 |
| Recipients |
grego87 |
| Date |
2009年12月15日.19:29:15 |
| SpamBayes Score |
0.0005478295 |
| Marked as misclassified |
No |
| Message-id |
<1260905357.88.0.211998340765.issue7519@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|