summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErovia <Erovia@users.noreply.github.com>2020-10-09 18:46:49 +0100
committerGitHub <noreply@github.com>2020-10-09 18:46:49 +0100
commit459f672879e99f27faadb548b6493760b9a5879c (patch)
treef5a72eddb3608059b8f89c1519aefd91b9fef376 /lib
parentcd0e32ff9ec5d33d911832c1ea716acb900b564d (diff)
downloadqmk_firmware-459f672879e99f27faadb548b6493760b9a5879c.tar.gz
qmk_firmware-459f672879e99f27faadb548b6493760b9a5879c.zip
CLI: Fix stripping of `ANY` from Configurator exports (#10585)
058737f broke it ¯\_(ツ)_/¯
Diffstat (limited to 'lib')
-rw-r--r--lib/python/qmk/keymap.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/python/qmk/keymap.py b/lib/python/qmk/keymap.py
index 2b271fe807..166697ee6a 100644
--- a/lib/python/qmk/keymap.py
+++ b/lib/python/qmk/keymap.py
@@ -103,6 +103,8 @@ def generate(keyboard, layout, layers, type='c', keymap=None):
for layer_num, layer in enumerate(layers):
if layer_num != 0:
layer_txt[-1] = layer_txt[-1] + ','
+
+ layer = map(_strip_any, layer)
layer_keys = ', '.join(layer)
layer_txt.append('\t[%s] = %s(%s)' % (layer_num, layout, layer_keys))