kyhton.kompress: move to core (with a fallback, used in promnesia)

This commit is contained in:
Dima Gerasimov 2020-10-29 01:35:43 +00:00 committed by karlicoss
parent 655b86bb0a
commit 15789a4149
9 changed files with 102 additions and 101 deletions

View file

@ -130,7 +130,7 @@ class TakeoutHTMLParser(HTMLParser):
def read_html(tpath: Path, file: str) -> Iterable[Parsed]:
from ...kython.kompress import kopen
from ...core.kompress import kopen
results: List[Parsed] = []
def cb(dt: datetime, url: Url, title: Title) -> None:
results.append((dt, url, title))

View file

@ -23,7 +23,7 @@ config = make_config(google)
from pathlib import Path
from typing import Optional, Iterable
from ...kython.kompress import kopen, kexists
from ...core.kompress import kopen, kexists
def get_takeouts(*, path: Optional[str]=None) -> Iterable[Path]: