core: improvements for warnings, twitter/rss: try using @warn_if_empty
This commit is contained in:
parent
616ffb457e
commit
216944b3cd
5 changed files with 35 additions and 17 deletions
|
@ -2,7 +2,9 @@ from itertools import chain
|
|||
|
||||
from more_itertools import unique_everseen
|
||||
|
||||
from ..core import warn_if_empty
|
||||
|
||||
@warn_if_empty
|
||||
def merge_tweets(*sources):
|
||||
yield from unique_everseen(
|
||||
chain(*sources),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue