diff --git a/development/autotests/keytest.py b/development/autotests/keytest.py index 99a3b8074b..e086d7ccce 100755 --- a/development/autotests/keytest.py +++ b/development/autotests/keytest.py @@ -503,7 +503,7 @@ def PrepareShortcuts(): if m: bindfound = True val = m.group(1) - if not bindings[val] is None: + if val in bindings: if bindings[val] != "": tmp.write("\\bind \"" + val + "\" \"" + bindings[val] + "\"\n") bindings[val] = ""