From: Roland Dobai Date: Tue, 11 Sep 2018 11:11:04 +0000 (+0200) Subject: idf.py: Make the lambda function Python 2 & 3 compatible X-Git-Tag: v3.2-beta1~181^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dff7a2a3024eb57100e4a72fd796ea0714dc1ca7;p=esp-idf idf.py: Make the lambda function Python 2 & 3 compatible --- diff --git a/tools/idf.py b/tools/idf.py index ce46b83b32..d68834a45f 100755 --- a/tools/idf.py +++ b/tools/idf.py @@ -357,7 +357,7 @@ def print_closing_message(args): else: # flashing the whole project 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), - key = lambda (o,_): int(o, 0)) + key = lambda x: int(x[0], 0)) for o,f in flash_items: cmd += o + " " + flasher_path(f) + " "