diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2013-11-08 13:50:53 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2013-11-08 14:07:41 (GMT) |
commit | 250ef794ed67960da1c3f8231ebf3b19c4f4388c (patch) | |
tree | ad7aef54ea48ab36f3ce9e55f85750380157724d /speech_gst.py | |
parent | dba223f5749f510735692a06f246acee30ab50bf (diff) |
Pep8 & pyflakes fixes
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'speech_gst.py')
-rw-r--r-- | speech_gst.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/speech_gst.py b/speech_gst.py index 9b026e4..2cf41fd 100644 --- a/speech_gst.py +++ b/speech_gst.py @@ -36,7 +36,7 @@ def get_all_voices(): def _message_cb(bus, message, pipe): if message.type == Gst.MessageType.EOS: pipe.set_state(Gst.State.NULL) - if speech.end_text_cb != None: + if speech.end_text_cb is not None: speech.end_text_cb() if message.type == Gst.MessageType.ERROR: pipe.set_state(Gst.State.NULL) |