summaryrefslogtreecommitdiffstats
path: root/Lib/SimpleHTTPServer.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-09 10:18:37 (GMT)
committerEric S. Raymond <esr@thyrsus.com>2001-02-09 10:18:37 (GMT)
commitbf97c9d87b51774a17c21a6d882a20f7572b3782 (patch)
tree3110670190f327bc2418b705d5bd5c74680bfafa /Lib/SimpleHTTPServer.py
parent8d87603e3e6f8b5cd1fbab14bbe455cd7603ec8b (diff)
downloadcpython-bf97c9d87b51774a17c21a6d882a20f7572b3782.zip
cpython-bf97c9d87b51774a17c21a6d882a20f7572b3782.tar.gz
cpython-bf97c9d87b51774a17c21a6d882a20f7572b3782.tar.bz2
String method conversion.
Diffstat (limited to 'Lib/SimpleHTTPServer.py')
-rw-r--r--Lib/SimpleHTTPServer.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/SimpleHTTPServer.py b/Lib/SimpleHTTPServer.py
index 9c87e66..01a6097 100644
--- a/Lib/SimpleHTTPServer.py
+++ b/Lib/SimpleHTTPServer.py
@@ -11,7 +11,6 @@ __version__ = "0.6"
__all__ = ["SimpleHTTPRequestHandler"]
import os
-import string
import posixpath
import BaseHTTPServer
import urllib
@@ -131,7 +130,7 @@ class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
"""
path = posixpath.normpath(urllib.unquote(path))
- words = string.splitfields(path, '/')
+ words = path.splitfields('/')
words = filter(None, words)
path = os.getcwd()
for word in words:
@@ -175,7 +174,7 @@ class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
base, ext = posixpath.splitext(path)
if self.extensions_map.has_key(ext):
return self.extensions_map[ext]
- ext = string.lower(ext)
+ ext = ext.lower()
if self.extensions_map.has_key(ext):
return self.extensions_map[ext]
else: