Bug report
Bug description:
Opening a .cfg file saved in UTF-8 with BOM throws an exception.
import configparser
config = configparser.ConfigParser()
config.read("./config_with_utf8_bom.cfg")
throws
configparser.MissingSectionHeaderError: File contains no section headers.
file: '/config_with_utf8_bom.cfg', line: 1
'\ufeff[umfufu]\n'
It is debatable if this is a bug or a feature request.
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Bug report
Bug description:
Opening a .cfg file saved in
UTF-8 with BOMthrows an exception.throws
It is debatable if this is a bug or a feature request.
CPython versions tested on:
3.12
Operating systems tested on:
Linux