From 980c6c4c0554faa7162373a0b6caf8c495f212bd Mon Sep 17 00:00:00 2001 From: "Clayton G. Hobbs" Date: Sun, 27 Dec 2015 00:17:36 -0500 Subject: Work towards Python 3 support --- blather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'blather.py') diff --git a/blather.py b/blather.py index 2a2c452..5406583 100755 --- a/blather.py +++ b/blather.py @@ -180,7 +180,7 @@ class Blather: def recognizer_finished(self, recognizer, text): t = text.lower() # Is there a matching command? - if self.commands.has_key( t ): + if t in self.commands: # Run the valid_sentence_command if there is a valid sentence command if self.options['valid_sentence_command']: subprocess.call(self.options['valid_sentence_command'], shell=True) -- cgit 1.4.1