Skip to content

Commit

Permalink
Consider an iterator instead of materializing inner list
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandog committed Mar 23, 2016
1 parent 25a6191 commit 796b177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sickbeard/providers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def sortedProviderList(randomize=False):


def makeProviderList():
return [x.provider for x in [getProviderModule(y) for y in __all__] if x]
return [x.provider for x in (getProviderModule(y) for y in __all__) if x]


def getProviderModule(name):
Expand Down

0 comments on commit 796b177

Please sign in to comment.