diff options
| author | Raymond Hettinger <python@rcn.com> | 2003-10-16 05:53:16 +0000 |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2003-10-16 05:53:16 +0000 |
| commit | 091d51a469cd3abf6ea1ccd9cc915c441d5d130a (patch) | |
| tree | b76406c755356645f75affd57d5468c5fd57baef /Lib/SimpleHTTPServer.py | |
| parent | 9f2f04869acb8f1ca69f44d0321616cf1f93b5fd (diff) | |
| download | cpython-091d51a469cd3abf6ea1ccd9cc915c441d5d130a.tar.gz | |
Let library modules use the new keyword arguments for list.sort().
Diffstat (limited to 'Lib/SimpleHTTPServer.py')
| -rw-r--r-- | Lib/SimpleHTTPServer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/SimpleHTTPServer.py b/Lib/SimpleHTTPServer.py index f8e3fc5305..d58bdc3937 100644 --- a/Lib/SimpleHTTPServer.py +++ b/Lib/SimpleHTTPServer.py @@ -99,7 +99,7 @@ class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): except os.error: self.send_error(404, "No permission to list directory") return None - list.sort(lambda a, b: cmp(a.lower(), b.lower())) + list.sort(key=lambda a: a.lower()) f = StringIO() f.write("<title>Directory listing for %s</title>\n" % self.path) f.write("<h2>Directory listing for %s</h2>\n" % self.path) |
