Learn to not write c, learn English grammar

This commit is contained in:
Nick Steel 2013-04-17 20:56:39 +01:00
parent 36a694617c
commit ce5e1ff26a

View File

@ -275,11 +275,11 @@ class MpdContext(object):
def lookup_playlist_from_name(self, name):
"""
Helper function to retrieve a playlist from it's unique MPD name.
Helper function to retrieve a playlist from its unique MPD name.
"""
if not self._playlist_uri_from_name:
self.refresh_playlists_mapping()
if name not in self._playlist_uri_from_name:
return None;
return None
uri = self._playlist_uri_from_name[name]
return self.core.playlists.lookup(uri).get()