mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-09-02 19:02:37 +02:00
move util.py into misc folder
This commit is contained in:
@@ -22,7 +22,7 @@ from ..config.legacy import (
|
||||
stderr,
|
||||
hint,
|
||||
)
|
||||
from ..util import (
|
||||
from archivebox.misc.util import (
|
||||
basename,
|
||||
htmldecode,
|
||||
download_url,
|
||||
|
@@ -7,7 +7,7 @@ from typing import IO, Iterable, Optional
|
||||
from datetime import datetime, timezone
|
||||
|
||||
from ..index.schema import Link
|
||||
from ..util import (
|
||||
from archivebox.misc.util import (
|
||||
htmldecode,
|
||||
enforce_types,
|
||||
find_all_urls,
|
||||
|
@@ -6,7 +6,7 @@ from typing import IO, Iterable
|
||||
from datetime import datetime, timezone
|
||||
|
||||
from ..index.schema import Link
|
||||
from ..util import (
|
||||
from archivebox.misc.util import (
|
||||
htmldecode,
|
||||
enforce_types,
|
||||
)
|
||||
|
@@ -5,7 +5,7 @@ import json
|
||||
from typing import IO, Iterable
|
||||
|
||||
from ..index.schema import Link
|
||||
from ..util import (
|
||||
from archivebox.misc.util import (
|
||||
enforce_types,
|
||||
)
|
||||
|
||||
|
@@ -6,7 +6,7 @@ from time import mktime
|
||||
from feedparser import parse as feedparser
|
||||
|
||||
from ..index.schema import Link
|
||||
from ..util import (
|
||||
from archivebox.misc.util import (
|
||||
htmldecode,
|
||||
enforce_types
|
||||
)
|
||||
|
@@ -6,7 +6,7 @@ from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
|
||||
from ..index.schema import Link
|
||||
from ..util import (
|
||||
from archivebox.misc.util import (
|
||||
htmldecode,
|
||||
enforce_types,
|
||||
find_all_urls,
|
||||
|
@@ -7,7 +7,7 @@ from datetime import datetime
|
||||
from xml.etree import ElementTree
|
||||
|
||||
from ..index.schema import Link
|
||||
from ..util import (
|
||||
from archivebox.misc.util import (
|
||||
htmldecode,
|
||||
enforce_types,
|
||||
)
|
||||
|
@@ -7,7 +7,7 @@ from typing import IO, Iterable
|
||||
from datetime import datetime
|
||||
|
||||
from ..index.schema import Link
|
||||
from ..util import (
|
||||
from archivebox.misc.util import (
|
||||
htmldecode,
|
||||
enforce_types,
|
||||
)
|
||||
|
@@ -6,7 +6,7 @@ from time import mktime
|
||||
from feedparser import parse as feedparser
|
||||
|
||||
from ..index.schema import Link
|
||||
from ..util import (
|
||||
from archivebox.misc.util import (
|
||||
htmldecode,
|
||||
enforce_types
|
||||
)
|
||||
|
@@ -11,7 +11,7 @@ from pocket import Pocket
|
||||
from archivebox.config import CONSTANTS
|
||||
|
||||
from ..index.schema import Link
|
||||
from ..util import enforce_types
|
||||
from archivebox.misc.util import enforce_types
|
||||
from archivebox.misc.system import atomic_write
|
||||
from ..config.legacy import (
|
||||
POCKET_CONSUMER_KEY,
|
||||
|
@@ -7,7 +7,7 @@ from typing import IO, Iterable
|
||||
from datetime import datetime
|
||||
|
||||
from ..index.schema import Link
|
||||
from ..util import (
|
||||
from archivebox.misc.util import (
|
||||
htmldecode,
|
||||
enforce_types,
|
||||
)
|
||||
|
@@ -11,7 +11,7 @@ from configparser import ConfigParser
|
||||
from archivebox.config import CONSTANTS
|
||||
|
||||
from ..index.schema import Link
|
||||
from ..util import enforce_types
|
||||
from archivebox.misc.util import enforce_types
|
||||
from archivebox.misc.system import atomic_write
|
||||
from ..config.legacy import READWISE_READER_TOKENS
|
||||
|
||||
|
@@ -5,7 +5,7 @@ from typing import IO, Iterable
|
||||
from datetime import datetime
|
||||
|
||||
from ..index.schema import Link
|
||||
from ..util import (
|
||||
from archivebox.misc.util import (
|
||||
htmldecode,
|
||||
enforce_types,
|
||||
str_between,
|
||||
|
@@ -7,7 +7,7 @@ from typing import IO, Iterable
|
||||
from datetime import datetime, timezone
|
||||
|
||||
from ..index.schema import Link
|
||||
from ..util import (
|
||||
from archivebox.misc.util import (
|
||||
enforce_types,
|
||||
URL_REGEX,
|
||||
)
|
||||
|
@@ -5,7 +5,7 @@ from typing import IO, Iterable
|
||||
from datetime import datetime
|
||||
|
||||
from ..index.schema import Link
|
||||
from ..util import (
|
||||
from archivebox.misc.util import (
|
||||
htmldecode,
|
||||
enforce_types,
|
||||
str_between,
|
||||
|
Reference in New Issue
Block a user