diff --git a/platformio/builder/main.py b/platformio/builder/main.py index 0e46f8d0..f29f2f85 100644 --- a/platformio/builder/main.py +++ b/platformio/builder/main.py @@ -145,10 +145,10 @@ if env.get("SIZETOOL") and "nobuild" not in COMMAND_LINE_TARGETS: Default("checkprogsize") # Print configured protocols -env.AddPreAction( - ["upload", "program"], - env.VerboseAction(lambda source, target, env: env.PrintUploadInfo(), - "Configuring upload protocol...")) +env.AddPreAction(["upload", "program"], + env.VerboseAction( + lambda source, target, env: env.PrintUploadInfo(), + "Configuring upload protocol...")) AlwaysBuild(env.Alias("debug", DEFAULT_TARGETS)) AlwaysBuild(env.Alias("__test", DEFAULT_TARGETS)) diff --git a/platformio/commands/debug/client.py b/platformio/commands/debug/client.py index d40951a0..4a00cb9e 100644 --- a/platformio/commands/debug/client.py +++ b/platformio/commands/debug/client.py @@ -253,8 +253,9 @@ class GDBClient(BaseProcess): # pylint: disable=too-many-instance-attributes return configuration = {"debug": self.debug_options, "env": self.env_options} exd = re.sub(r'\\(?!")', "/", json.dumps(configuration)) - exd = re.sub(r'"(?:[a-z]\:)?((/[^"/]+)+)"', lambda m: '"%s"' % join( - *m.group(1).split("/")[-2:]), exd, re.I | re.M) + exd = re.sub(r'"(?:[a-z]\:)?((/[^"/]+)+)"', + lambda m: '"%s"' % join(*m.group(1).split("/")[-2:]), exd, + re.I | re.M) mp = MeasurementProtocol() mp['exd'] = "DebugGDBPioInitError: %s" % exd mp['exf'] = 1