From fac2c8af7d1173553ee9706769dc6f01cedecf93 Mon Sep 17 00:00:00 2001 From: Javier Domingo Cansino Date: Fri, 9 Aug 2013 08:31:32 +0200 Subject: [PATCH] format: Correcting flake8 messages --- mopidy/core/playback.py | 4 ++-- mopidy/core/tracklist.py | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/mopidy/core/playback.py b/mopidy/core/playback.py index bb797f09..eaa926eb 100644 --- a/mopidy/core/playback.py +++ b/mopidy/core/playback.py @@ -1,7 +1,6 @@ from __future__ import unicode_literals import logging -import random import urlparse from mopidy.audio import PlaybackState @@ -234,7 +233,8 @@ class PlaybackController(object): """ self._trigger_track_playback_ended() 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): """If paused, resume playing the current track.""" diff --git a/mopidy/core/tracklist.py b/mopidy/core/tracklist.py index 3a5775b3..51d45e81 100644 --- a/mopidy/core/tracklist.py +++ b/mopidy/core/tracklist.py @@ -144,7 +144,6 @@ class TracklistController(object): except ValueError: return None - def eot_track(self, tl_track): """ The track that will be played after the given track. @@ -187,7 +186,7 @@ class TracklistController(object): 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()`. 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] - def add(self, tracks=None, at_position=None, uri=None): """ Add the track or list of tracks to the tracklist.