Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/audio.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2014-01-03 16:41:44 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2014-01-03 16:41:44 (GMT)
commitc656c1d5b1d8195ddde5583c6426b93ab5a283b4 (patch)
treeee1cb26de3bb72b31d10b84e3499c54f3cd51a93 /audio.py
parent36e4e493fb4bee7ff361baf13f9e2c599b6e4cc4 (diff)
More pep8 fixes
Diffstat (limited to 'audio.py')
-rw-r--r--audio.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio.py b/audio.py
index edc9872..8f955d3 100644
--- a/audio.py
+++ b/audio.py
@@ -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