mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
tools: Fix UTF decode error
This commit is contained in:
parent
1b7a4758e3
commit
f4cfca4353
@ -42,7 +42,7 @@ def get_make_variables(path, makefile="Makefile", expected_failure=False, variab
|
|||||||
result = {}
|
result = {}
|
||||||
BUILT_IN_VARS = set(["MAKEFILE_LIST", "SHELL", "CURDIR", "MAKEFLAGS"])
|
BUILT_IN_VARS = set(["MAKEFILE_LIST", "SHELL", "CURDIR", "MAKEFLAGS"])
|
||||||
|
|
||||||
for line in output.decode().split("\n"):
|
for line in output.decode('utf-8').split("\n"):
|
||||||
if line.startswith("# makefile"): # this line appears before any variable defined in the makefile itself
|
if line.startswith("# makefile"): # this line appears before any variable defined in the makefile itself
|
||||||
next_is_makefile = True
|
next_is_makefile = True
|
||||||
elif next_is_makefile:
|
elif next_is_makefile:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user