bpo-36345: Update wsgiref example (GH-12562) · python/cpython@2b7f93b · GitHub
Skip to content

Commit 2b7f93b

Browse files
authored
bpo-36345: Update wsgiref example (GH-12562)
Use literalinclude markup to include Tools/scripts/serve.py code. Tools/scripts/serve.py first argument on the command line is now optional.
1 parent 6fa84bd commit 2b7f93b

3 files changed

Lines changed: 10 additions & 32 deletions

File tree

Doc/library/wsgiref.rst

Lines changed: 4 additions & 30 deletions
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Avoid the duplication of code from ``Tools/scripts/serve.py`` in using the
2+
:rst:dir:`literalinclude` directive for the basic wsgiref-based web server in the
3+
documentation of :mod:`wsgiref`. Contributed by Stéphane Wirtel.

Tools/scripts/serve.py

Lines changed: 3 additions & 2 deletions

0 commit comments

Comments
 (0)