format: Correcting flake8 messages

This commit is contained in:
Javier Domingo Cansino 2013-08-09 08:31:32 +02:00
parent 782a6a7d1f
commit fac2c8af7d
2 changed files with 3 additions and 5 deletions

View File

@ -1,7 +1,6 @@
from __future__ import unicode_literals from __future__ import unicode_literals
import logging import logging
import random
import urlparse import urlparse
from mopidy.audio import PlaybackState from mopidy.audio import PlaybackState
@ -234,7 +233,8 @@ class PlaybackController(object):
""" """
self._trigger_track_playback_ended() self._trigger_track_playback_ended()
tl_track = self.current_tl_track tl_track = self.current_tl_track
self.change_track(self.core.tracklist.previous_track(tl_track), on_error_step=-1) self.change_track(self.core.tracklist.previous_track(tl_track),
on_error_step=-1)
def resume(self): def resume(self):
"""If paused, resume playing the current track.""" """If paused, resume playing the current track."""

View File

@ -144,7 +144,6 @@ class TracklistController(object):
except ValueError: except ValueError:
return None return None
def eot_track(self, tl_track): def eot_track(self, tl_track):
""" """
The track that will be played after the given track. The track that will be played after the given track.
@ -187,7 +186,7 @@ class TracklistController(object):
def next_track(self, tl_track): def next_track(self, tl_track):
""" """
The track that will be played if calling The track that will be played if calling
:meth:`mopidy.core.PlaybackController.next()`. :meth:`mopidy.core.PlaybackController.next()`.
For normal playback this is the next track in the playlist. If repeat For normal playback this is the next track in the playlist. If repeat
@ -247,7 +246,6 @@ class TracklistController(object):
return self.tl_tracks[position - 1] return self.tl_tracks[position - 1]
def add(self, tracks=None, at_position=None, uri=None): def add(self, tracks=None, at_position=None, uri=None):
""" """
Add the track or list of tracks to the tracklist. Add the track or list of tracks to the tracklist.