diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2014-01-03 16:41:44 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2014-01-03 16:41:44 (GMT) |
commit | c656c1d5b1d8195ddde5583c6426b93ab5a283b4 (patch) | |
tree | ee1cb26de3bb72b31d10b84e3499c54f3cd51a93 /audio.py | |
parent | 36e4e493fb4bee7ff361baf13f9e2c599b6e4cc4 (diff) |
More pep8 fixes
Diffstat (limited to 'audio.py')
-rw-r--r-- | audio.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -40,7 +40,7 @@ class Audio(object): _logger.debug('play audio %s' % filename) self._player.set_property('uri', 'file://' + filename) self._player.set_state(Gst.State.NULL) - elif self._playing == None: + elif self._playing is None: return else: _logger.debug('continue audio') @@ -49,7 +49,7 @@ class Audio(object): self._playing = True def pause(self): - if self._playing != None: + if self._playing is not None: _logger.debug('pause audio') self._player.set_state(Gst.State.PAUSED) self._playing = False |