commit b5229cc5a2c0d0fa2c45d17765b026c5d076dcbe
Author: Kornel Benko <[email protected]>
Date:   Sun May 21 18:38:48 2017 +0200

    keytests: Wrong check for empty key in associative array
---
 development/autotests/keytest.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/development/autotests/keytest.py b/development/autotests/keytest.py
index 99a3b80..e086d7c 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] = ""

Reply via email to