Skip to content

Commit

Permalink
maintenance: explicit export and code quality (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
adbar authored Oct 22, 2024
1 parent 6af9dde commit 31baf2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions htmldate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

import logging

from datetime import datetime

from .core import find_date

logging.getLogger(__name__).addHandler(logging.NullHandler())

__all__ = ["find_date"]
2 changes: 1 addition & 1 deletion htmldate/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def load_html(htmlobject: Union[bytes, str, HtmlElement]) -> Optional[HtmlElemen
if (
isinstance(htmlobject, str)
and htmlobject.startswith("http")
and not " " in htmlobject
and " " not in htmlobject
):
LOGGER.debug("URL detected, downloading: %s", htmlobject)
htmlobject = fetch_url(htmlobject) # type: ignore[assignment]
Expand Down

0 comments on commit 31baf2d

Please sign in to comment.