return instead of yield set()

This commit is contained in:
Christophe Benz 2010-07-13 14:43:09 +02:00 committed by Romain Bignon
commit 22cb3e1cbd
3 changed files with 3 additions and 3 deletions

View file

@ -44,6 +44,6 @@ class YoujizzBackend(BaseBackend, ICapVideo):
def iter_search_results(self, pattern=None, sortby=ICapVideo.SEARCH_RELEVANCE, nsfw=False, required_fields=None):
if not nsfw:
yield iter(set())
return
for video in self.browser.iter_search_results(pattern, required_fields=required_fields):
yield video