Mercurial > cpython
changeset 85877:dd55d54b2a15 2.7
Code improvement. Review comment by Eric V. Smith
author | Senthil Kumaran <senthil@uthcode.com> |
---|---|
date | Sun, 29 Sep 2013 18:57:42 -0700 |
parents | f24b67d044ba |
children | c1a294bbb4fa |
files | Lib/SimpleHTTPServer.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Lib/SimpleHTTPServer.py +++ b/Lib/SimpleHTTPServer.py @@ -150,7 +150,7 @@ class SimpleHTTPRequestHandler(BaseHTTPS path = path.split('?',1)[0] path = path.split('#',1)[0] # Don't forget explicit trailing slash when normalizing. Issue17324 - trailing_slash = True if path.rstrip().endswith('/') else False + trailing_slash = path.rstrip().endswith('/') path = posixpath.normpath(urllib.unquote(path)) words = path.split('/') words = filter(None, words)