From f9bd9d3b269ef0e1be9189b2395350e2062fe4d0 Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 23 Oct 2020 12:21:32 +1100 Subject: [PATCH] c2json: Fix TypeError on MSYS2 (#10709) --- lib/python/qmk/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/python/qmk/commands.py b/lib/python/qmk/commands.py index 5a6e60988a..4ec7d2ea53 100644 --- a/lib/python/qmk/commands.py +++ b/lib/python/qmk/commands.py @@ -79,7 +79,8 @@ def run(command, *args, **kwargs): raise TypeError('`command` must be a non-text sequence such as list or tuple.') if 'windows' in platform_id: - safecmd = map(shlex.quote, command) + safecmd = map(str, command) + safecmd = map(shlex.quote, safecmd) safecmd = ' '.join(safecmd) command = [os.environ['SHELL'], '-c', safecmd]