Ver código fonte

Open textfile in textmode

Open mapping files in textmode as they are textfiles.
ShyRed 7 anos atrás
pai
commit
75308d7a30
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      main/SCsub

+ 1 - 1
main/SCsub

@@ -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:]