mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-07 05:26:53 +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 = []
|
||||
for filename in files:
|
||||
try:
|
||||
if sys.version_info < (3,) and isinstance(filename, bytes):
|
||||
filename = filename.decode('UTF-8')
|
||||
|
||||
found_files.extend(config.read(filename))
|
||||
except UnicodeDecodeError:
|
||||
LOG.exception(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue