]> granicus.if.org Git - python/commit
Make http.server main program nicer for interactive use.
authorAlexandre Vassalotti <alexandre@peadrop.com>
Fri, 3 Apr 2009 07:16:55 +0000 (07:16 +0000)
committerAlexandre Vassalotti <alexandre@peadrop.com>
Fri, 3 Apr 2009 07:16:55 +0000 (07:16 +0000)
commitb5292a2e27dfb72a63f5ae51eb344405eb8a2f13
treec5ebcacfd75bd5eabbc6fbc14e3f0763733f34f6
parent3cde7c752ab38e357f9e74d6f5c50af0094e2220
Make http.server main program nicer for interactive use.
Remove unreachable calls to test().

This restores the behavior of SimpleHTTPServer, where a user could
type "python -m SimpleHTTPServer" and get a simple server for sharing
files. Now, you can do the same thing with "python3 -m http.server".
Lib/http/server.py