]> git.lyx.org Git - lyx.git/commitdiff
keytests: Wrong check for empty key in associative array
authorKornel Benko <kornel@lyx.org>
Sun, 21 May 2017 16:38:48 +0000 (18:38 +0200)
committerKornel Benko <kornel@lyx.org>
Sun, 21 May 2017 16:38:48 +0000 (18:38 +0200)
development/autotests/keytest.py

index 99a3b8074b758833b2a7ac74a83c39439be2341e..e086d7cccee0b5a1044e86c1bea05a84ac9f7fd0 100755 (executable)
@@ -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] = ""