platypush/plugins/music/mpd/__init__.py
def play_or_stop(self):
        """ Play or stop (play state toggle) """
        status = self.status().output['state']
        if status == 'play':
            return self._exec('stop')
        else:
            return self._exec('play')
 Play or stop (play state toggle) 
Play or stop (play state toggle)
Play or stop ( play state toggle )
def play_or_stop(self):
        status = self.status().output['state']
        if status == 'play':
            return self._exec('stop')
        else:
            return self._exec('play')
def play_or_stop ( self ) : status = self . status ( ) . output [ 'state' ] if status == 'play' : return self . _exec ( 'stop' ) else : return self . _exec ( 'play' )
Play or stop (play state toggle)
Play or stop ( play state toggle )
""" Play or stop (play state toggle) """
self