fix few more flake8 warnings

This commit is contained in:
Andrey Yantsen 2019-02-07 00:04:26 +00:00
parent e5794e4a13
commit a28cbdc669

View file

@ -378,13 +378,13 @@ class LibrarySection(PlexObject):
return self.fetchItem(key, title__iexact=title)
def all(self, sort=None, **kwargs):
""" Returns a list of media from this library section.
""" Returns a list of media from this library section.
Parameters:
sort (string): The sort string
"""
sortStr = ''
if sort != None:
if sort is not None:
sortStr = '?sort=' + sort
key = '/library/sections/%s/all%s' % (self.key, sortStr)