mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-07 13:36:54 +00:00
Update config.py
This commit is contained in:
parent
894c4ac9ee
commit
d4fcde61dd
1 changed files with 3 additions and 0 deletions
|
|
@ -69,6 +69,9 @@ class ConfigFileFinder(object):
|
||||||
found_files = []
|
found_files = []
|
||||||
for filename in files:
|
for filename in files:
|
||||||
try:
|
try:
|
||||||
|
if sys.version_info < (3,) and isinstance(filename, bytes):
|
||||||
|
filename = filename.decode('UTF-8')
|
||||||
|
|
||||||
found_files.extend(config.read(filename))
|
found_files.extend(config.read(filename))
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
LOG.exception(
|
LOG.exception(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue