mpd: Fix flake8 warnings
This commit is contained in:
parent
27ff2e5f0a
commit
24271681c9
@ -94,6 +94,7 @@ def listplaylists(context):
|
||||
result.append(('Last-Modified', last_modified))
|
||||
return result
|
||||
|
||||
|
||||
@handle_request(r'^load "(?P<name>[^"]+)"( "(?P<start>\d+):(?P<end>\d+)*")*$')
|
||||
def load(context, name, start=None, end=None):
|
||||
"""
|
||||
|
||||
@ -67,7 +67,7 @@ class PlaylistsHandlerTest(protocol.BaseTestCase):
|
||||
def test_listplaylists_duplicate(self):
|
||||
playlist1 = Playlist(name='a', uri='dummy:a1')
|
||||
playlist2 = Playlist(name='a', uri='dummy:a2')
|
||||
self.backend.playlists.playlists = [ playlist1 , playlist2 ]
|
||||
self.backend.playlists.playlists = [playlist1, playlist2]
|
||||
|
||||
self.sendRequest('listplaylists')
|
||||
self.assertInResponse('playlist: a')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user