Merge pull request #17564 from ShyRed/fixbuild

Open textfile in textmode
This commit is contained in:
Rémi Verschelde 2018-03-17 08:50:21 +01:00 committed by GitHub
commit 201d2d7226
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,7 @@ def make_default_controller_mappings(target, source, env):
platform_mappings = OrderedDict() platform_mappings = OrderedDict()
for src in source: for src in source:
src_path = src.srcnode().abspath src_path = src.srcnode().abspath
with open(src_path, "rb") as f: with open(src_path, "r") as f:
# read mapping file and skip header # read mapping file and skip header
mapping_file_lines = f.readlines()[2:] mapping_file_lines = f.readlines()[2:]