summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorDirkjan Ochtman <dirkjan@ochtman.nl>2010-02-24 17:06:31 (GMT)
committerDirkjan Ochtman <dirkjan@ochtman.nl>2010-02-24 17:06:31 (GMT)
commit60677a78f8df722a92b57732496cbd97e014849d (patch)
tree79cf358a175bc2f5fbe93e183fe4c1b69c3627f8 /Tools
parent2076666770a57eac4e95bf554af2fdc56f28e29e (diff)
downloadcpython-60677a78f8df722a92b57732496cbd97e014849d.zip
cpython-60677a78f8df722a92b57732496cbd97e014849d.tar.gz
cpython-60677a78f8df722a92b57732496cbd97e014849d.tar.bz2
Add some notes about Tools/scripts/serve.py.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/scripts/README1
-rwxr-xr-xTools/scripts/serve.py6
2 files changed, 7 insertions, 0 deletions
diff --git a/Tools/scripts/README b/Tools/scripts/README
index 4181f8f..eaf9aee 100644
--- a/Tools/scripts/README
+++ b/Tools/scripts/README
@@ -57,6 +57,7 @@ pysource.py Find Python source files
redemo.py Basic regular expression demonstration facility
reindent.py Change .py files to use 4-space indents.
rgrep.py Reverse grep through a file (useful for big logfiles)
+serve.py Small wsgiref-based web server, used in make serve in Doc
setup.py Install all scripts listed here
suff.py Sort a list of files by suffix
svneol.py Sets svn:eol-style on all files in directory
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