homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:17grego87setrecipients: + grego87
2009年12月15日 19:29:17grego87setmessageid: <1260905357.88.0.211998340765.issue7519@psf.upfronthosting.co.za>
2009年12月15日 19:29:16grego87linkissue7519 messages
2009年12月15日 19:29:16grego87create

AltStyle によって変換されたページ (->オリジナル) /