diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2010-02-24 17:06:31 (GMT) |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2010-02-24 17:06:31 (GMT) |
commit | 60677a78f8df722a92b57732496cbd97e014849d (patch) | |
tree | 79cf358a175bc2f5fbe93e183fe4c1b69c3627f8 /Tools/scripts/serve.py | |
parent | 2076666770a57eac4e95bf554af2fdc56f28e29e (diff) | |
download | cpython-60677a78f8df722a92b57732496cbd97e014849d.zip cpython-60677a78f8df722a92b57732496cbd97e014849d.tar.gz cpython-60677a78f8df722a92b57732496cbd97e014849d.tar.bz2 |
Add some notes about Tools/scripts/serve.py.
Diffstat (limited to 'Tools/scripts/serve.py')
-rwxr-xr-x | Tools/scripts/serve.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tools/scripts/serve.py b/Tools/scripts/serve.py index 09d850a..61de63d 100755 --- a/Tools/scripts/serve.py +++ b/Tools/scripts/serve.py @@ -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 |