mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-21 07:58:04 +00:00
Force encoding in reading of setup.cfg to utf-8 (#4329)
* Add Sebastian Müller to contributors * Add setup.cfg utf8 fix to changelog Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
This commit is contained in:
parent
316fc0dcbb
commit
ac02be7686
|
@ -468,3 +468,5 @@ contributors:
|
|||
* James Sinclair (irgeek): contributor
|
||||
|
||||
* Andreas Finkler: contributor
|
||||
|
||||
* Sebastian Müller: contributor
|
||||
|
|
|
@ -67,6 +67,10 @@ Release date: Undefined
|
|||
|
||||
* Don't show ``DuplicateBasesError`` for attribute access
|
||||
|
||||
* Fix crash when checking ``setup.cfg`` for pylint config when there are non-ascii characters in there
|
||||
|
||||
Closes #4328
|
||||
|
||||
* Allow code flanked in backticks to be skipped by spellchecker
|
||||
|
||||
Closes #4319
|
||||
|
|
|
@ -26,7 +26,7 @@ def _toml_has_config(path):
|
|||
|
||||
def _cfg_has_config(path):
|
||||
parser = configparser.ConfigParser()
|
||||
parser.read(path)
|
||||
parser.read(path, encoding="utf-8")
|
||||
return any(section.startswith("pylint.") for section in parser.sections())
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user