From 4515114b892038bca013b76a4f80649d854260ae Mon Sep 17 00:00:00 2001 From: Ryan Jarvis Date: Tue, 5 Feb 2019 15:52:27 -0800 Subject: [PATCH] Fix last % formatter. This was auto unpacking a tuple --- code/memanalyzer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/memanalyzer.py b/code/memanalyzer.py index ddd6a788..02405a65 100644 --- a/code/memanalyzer.py +++ b/code/memanalyzer.py @@ -101,8 +101,8 @@ def analyse_memory(elf_file): def run(env_, modules_): flags = "" - for item in modules_.items(): - flags += "-D%s_SUPPORT=%d " % item + for k, v in modules_.items(): + flags += "-D{}_SUPPORT={:d} ".format(k, v) command = "ESPURNA_BOARD=\"WEMOS_D1_MINI_RELAYSHIELD\" ESPURNA_FLAGS=\"{}\" platformio run --silent --environment {} 2>/dev/null".format(flags, env_) subprocess.check_call(command, shell=True)