New diff file.
Removed the '-g' option and added a '-b' option.
Using the '-g' option will now bring up pydoc options help.
Added a simple server command prompt with 'b' and 'q' choices
to open a browser and quit the server.
Allow the '-p' option to be use along with the '-b' option.
Catch the error when the port is already in use and print a nice error instead of a traceback with an exception.
The port number now defaults to port 0 and uses a random unused port.
Changed the name of the server to better describe what it does to
http._text_server_thread.py. Used a leading underscore on the name to
indicate it is a private module and give it time to mature a bit more
before making it public.
Rewrote the _text_server_thread.py example in its __doc__ string so
it passes a doctest. |