docs: fix api

This commit is contained in:
Daylin Morgan 2024-03-11 14:37:09 -05:00
parent c1a8fd3d41
commit 9aef0ebd96
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -23,7 +23,7 @@ if not (src := __import__("pathlib").Path(__file__).parent / "swydd/__init__.py"
import sys; from urllib.request import urlopen; from urllib.error import URLError # noqa
try: r = urlopen("https://raw.githubusercontent.com/daylinmorgan/swydd/main/src/swydd/__init__.py") # noqa
except URLError as e: sys.exit(f"{e}\n") # noqa
src.parent.mkdir(exists_ok=True); src.write_text(r.read().decode("utf-8")); # noqa
src.parent.mkdir(exist_ok=True); src.write_text(r.read().decode("utf-8")); # noqa
# fmt: on
```