mirror of
https://github.com/daylinmorgan/swydd.git
synced 2024-11-23 15:20:43 -06:00
docs: fix api
This commit is contained in:
parent
c1a8fd3d41
commit
9aef0ebd96
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue