HPI/my/twitter/common.py
Dima Gerasimov fd41caa640 core: add __NOT_HPI_MODULE__ flag to mark utility files etc
(more of an intermediate solution perhaps)
2020-09-30 21:54:09 +02:00

12 lines
265 B
Python

from itertools import chain
from more_itertools import unique_everseen
from ..core import warn_if_empty, __NOT_HPI_MODULE__
@warn_if_empty
def merge_tweets(*sources):
yield from unique_everseen(
chain(*sources),
key=lambda t: t.id_str,
)