kyhton.kompress: move to core (with a fallback, used in promnesia)
This commit is contained in:
parent
655b86bb0a
commit
15789a4149
9 changed files with 102 additions and 101 deletions
|
@ -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))
|
||||
|
|
|
@ -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]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue