Skip to content

Commit 5dabd10

Browse files
committed
Correct download url
/3/archives is always latest; need to specify minor version
1 parent 6e5be9f commit 5dabd10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fetch_python_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
parsed = parser.parse_args()
1919

2020
major, minor, *_ = sys.version_info
21-
url = f"https://docs.python.org/3/archives/python-{major}.{minor}-docs-html.tar.bz2"
21+
url = f"https://docs.python.org/{major}.{minor}/archives/python-{major}.{minor}-docs-html.tar.bz2"
2222
outfile = HERE / f"python-{major}.{minor}-docs-html.tar.bz2"
2323

2424
print(f"Downloading {url}")

0 commit comments

Comments
 (0)