summaryrefslogtreecommitdiffstats
path: root/Lib/dos-8x3/simpleht.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-12-22 13:50:33 (GMT)
committerGuido van Rossum <guido@python.org>1998-12-22 13:50:33 (GMT)
commit7ea1d972d1519ac8cb8051ff0e99d02e9ef71251 (patch)
tree55317bb06946ba95640e4cbe97588f9cf743f045 /Lib/dos-8x3/simpleht.py
parentfdd302820ec8f8af0baa3e58a2795d00f14dffcb (diff)
downloadcpython-7ea1d972d1519ac8cb8051ff0e99d02e9ef71251.zip
cpython-7ea1d972d1519ac8cb8051ff0e99d02e9ef71251.tar.gz
cpython-7ea1d972d1519ac8cb8051ff0e99d02e9ef71251.tar.bz2
The usual.
# Message to all python-checkins readers: we have a problem with the # CVS mirroring software. You can't check out the latest changes yet. # We hope to have fixed this by noon EST today.
Diffstat (limited to 'Lib/dos-8x3/simpleht.py')
-rwxr-xr-xLib/dos-8x3/simpleht.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/dos-8x3/simpleht.py b/Lib/dos-8x3/simpleht.py
index 7126855..9260e7e 100755
--- a/Lib/dos-8x3/simpleht.py
+++ b/Lib/dos-8x3/simpleht.py
@@ -64,7 +64,7 @@ class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
self.send_error(403, "Directory listing not supported")
return None
try:
- f = open(path)
+ f = open(path, 'rb')
except IOError:
self.send_error(404, "File not found")
return None
@@ -148,7 +148,7 @@ class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
def test(HandlerClass = SimpleHTTPRequestHandler,
- ServerClass = SocketServer.TCPServer):
+ ServerClass = BaseHTTPServer.HTTPServer):
BaseHTTPServer.test(HandlerClass, ServerClass)