mirror of
https://github.com/python/cpython.git
synced 2025-11-06 00:22:07 +00:00
Add some notes about Tools/scripts/serve.py.
This commit is contained in:
parent
2076666770
commit
60677a78f8
2 changed files with 7 additions and 0 deletions
|
|
@ -1,4 +1,10 @@
|
|||
#!/usr/bin/env python
|
||||
'''
|
||||
Small wsgiref based web server. Takes a path to serve from and an
|
||||
optional port number (defaults to 8000), then tries to serve files.
|
||||
Mime types are guessed from the file names, 404 errors are thrown
|
||||
if the file is not found. Used for the make serve target in Doc.
|
||||
'''
|
||||
import sys
|
||||
import os
|
||||
import mimetypes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue