diff options
author | Clayton G. Hobbs <clay@lakeserv.net> | 2015-12-27 00:17:36 -0500 |
---|---|---|
committer | Clayton G. Hobbs <clay@lakeserv.net> | 2015-12-27 00:17:36 -0500 |
commit | 980c6c4c0554faa7162373a0b6caf8c495f212bd (patch) | |
tree | 7f8a5a1ad91d64fef4cdbe65d7ad59aa532a3316 /blather.py | |
parent | 2099a52933697b336dbd8f4201441a875444084c (diff) |
Work towards Python 3 support
Diffstat (limited to 'blather.py')
-rwxr-xr-x | blather.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |