move rss stuff in a separate subpackage

This commit is contained in:
Dima Gerasimov 2020-05-13 21:36:19 +01:00
parent c289fbb872
commit 92cf375480
5 changed files with 4 additions and 4 deletions

View file

@ -17,7 +17,7 @@ def get_all_subscriptions() -> List[Subscription]:
states.update(feedly.get_states())
states.update(feedbin.get_states())
by_url: Dict[str, Subscription] = {}
for d, feeds in sorted(states.items()):
for _, feeds in sorted(states.items()):
for f in feeds:
if f.url not in by_url:
by_url[f.url] = f

View file

@ -7,7 +7,7 @@ from my.config import feedbin as config
from pathlib import Path
from typing import Sequence
from .core.common import listify, get_files, isoparse
from ..core.common import listify, get_files, isoparse
from ._rss import Subscription

View file

@ -7,7 +7,7 @@ from my.config import feedly as config
from pathlib import Path
from typing import Sequence
from .core.common import listify, get_files, isoparse
from ..core.common import listify, get_files, isoparse
from ._rss import Subscription

View file

@ -76,7 +76,7 @@ class feedly:
os.environ['MY_CONFIG'] = str(tmp_path)
# should not raise at least
import my.feedly
import my.rss.feedly
@pytest.fixture