Skip to content

Commit 61e9959

Browse files
committed
bpo-36345: Deprecate Tools/scripts/serve.py in favour of the HTTP server
1 parent 09a9f17 commit 61e9959

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Doc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ check:
174174
$(PYTHON) tools/rstlint.py -i tools -i $(VENVDIR) -i README.rst
175175

176176
serve:
177-
$(PYTHON) ../Tools/scripts/serve.py build/html
177+
$(PYTHON) -m http.server -d build/html
178178

179179
# Targets for daily automated doc build
180180
# By default, Sphinx only rebuilds pages where the page content has changed.

Doc/make.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ cmd /S /C "%PYTHON% tools\rstlint.py -i tools"
172172
goto end
173173

174174
:serve
175-
cmd /S /C "%PYTHON% ..\Tools\scripts\serve.py "%BUILDDIR%\html""
175+
cmd /S /C "%PYTHON% -m http.server -d "%BUILDDIR%\html""
176176
goto end
177177

178178
:end
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
make serve uses :mod:`http.server` with ``-d`` parameter instead of
2+
``Tools/scripts/server.py``. Contributed by Stéphane Wirtel

0 commit comments

Comments
 (0)