[Python-checkins] r78430 - in python/trunk/Tools/scripts: README serve.py

dirkjan.ochtman python-checkins at python.org
Wed Feb 24 18:06:32 CET 2010


Author: dirkjan.ochtman
Date: Wed Feb 24 18:06:31 2010
New Revision: 78430

Log:
Add some notes about Tools/scripts/serve.py.

Modified:
   python/trunk/Tools/scripts/README
   python/trunk/Tools/scripts/serve.py

Modified: python/trunk/Tools/scripts/README
==============================================================================
--- python/trunk/Tools/scripts/README	(original)
+++ python/trunk/Tools/scripts/README	Wed Feb 24 18:06:31 2010
@@ -57,6 +57,7 @@
 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

Modified: python/trunk/Tools/scripts/serve.py
==============================================================================
--- python/trunk/Tools/scripts/serve.py	(original)
+++ python/trunk/Tools/scripts/serve.py	Wed Feb 24 18:06:31 2010
@@ -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


More information about the Python-checkins mailing list