Przeglądaj źródła

idf.py: Make the lambda function Python 2 & 3 compatible

Roland Dobai 7 lat temu
rodzic
commit
dff7a2a302
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      tools/idf.py

+ 1 - 1
tools/idf.py

@@ -357,7 +357,7 @@ def print_closing_message(args):
         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 (o,_): int(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) + " "