decode board ids line

This commit is contained in:
Graham R Pugh 2020-08-18 15:13:59 +02:00
parent 1283058653
commit 445e8054e1

View File

@ -486,7 +486,7 @@ def get_board_ids(filename):
supported_board_ids = "" supported_board_ids = ""
with open(filename) as search: with open(filename) as search:
for line in search: for line in search:
line = line.rstrip() # remove '\n' at end of line line = line.decode("utf8").rstrip() # remove '\n' at end of line
# dist files for macOS 10.* list boardIDs whereas dist files for # dist files for macOS 10.* list boardIDs whereas dist files for
# macOS 11.* list supportedBoardIDs # macOS 11.* list supportedBoardIDs
if "boardIds" in line: if "boardIds" in line: