]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add some notes about Tools/scripts/serve.py.
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Wed, 24 Feb 2010 17:06:31 +0000 (17:06 +0000)
committerDirkjan Ochtman <dirkjan@ochtman.nl>
Wed, 24 Feb 2010 17:06:31 +0000 (17:06 +0000)
Tools/scripts/README
Tools/scripts/serve.py

index 4181f8f38cde7aa5e1dbc94ee7562de347925f18..eaf9aee5b57bb2395122669576a6a50ea602d77f 100644 (file)
@@ -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
index 09d850abced9ad974497d48687fca3be325f0dd5..61de63d1958984954c1b6703801d5c513f601f92 100755 (executable)
@@ -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