idf.py: Make the lambda function Python 2 & 3 compatible
This commit is contained in:
parent
8e20c13348
commit
5b1d8d64f2
1 changed files with 2 additions and 1 deletions
|
@ -338,7 +338,8 @@ def print_closing_message(args):
|
||||||
cmd += flasher_path(flasher_args[key]["file"])
|
cmd += flasher_path(flasher_args[key]["file"])
|
||||||
else: # flashing the whole project
|
else: # flashing the whole project
|
||||||
cmd = " ".join(flasher_args["write_flash_args"]) + " "
|
cmd = " ".join(flasher_args["write_flash_args"]) + " "
|
||||||
flash_items = sorted((o,f) for (o,f) in flasher_args["flash_files"].items() if len(o) > 0)
|
flash_items = sorted(((o,f) for (o,f) in flasher_args["flash_files"].items() if len(o) > 0),
|
||||||
|
key = lambda x: int(x[0], 0))
|
||||||
for o,f in flash_items:
|
for o,f in flash_items:
|
||||||
cmd += o + " " + flasher_path(f) + " "
|
cmd += o + " " + flasher_path(f) + " "
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue