summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Holland <william.holland@codethink.co.uk>2015-05-28 23:30:32 +0100
committerWilliam Holland <william.holland@codethink.co.uk>2015-05-28 23:30:32 +0100
commit29899c4d3cef97c540e83ffc5f696cd467853280 (patch)
tree49787c7ee924a009827a70f1bf54cccedc35da6a
parentc9d4d808552650438870c10f333bc4359a9f1719 (diff)
downloadkeyboard-python-29899c4d3cef97c540e83ffc5f696cd467853280.tar.bz2
Fix not equal operator not working on Key
-rw-r--r--keyboardpython/key.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboardpython/key.py b/keyboardpython/key.py
index c1bf980..e6592ab 100644
--- a/keyboardpython/key.py
+++ b/keyboardpython/key.py
@@ -23,7 +23,7 @@ class Key:
return str(self) == str(other)
def __ne__(self,other):
- if isinstance(Key,other): return True
+ if isinstance(other,Key): return True
return str(self) != str(other)
def __str__(self):