From 600b735062d2eb57ac9ec5c5e1e860c9af7371d4 Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Sun, 29 Sep 2013 18:59:04 -0700 Subject: Minor code improvement. Review comment by Eric V. Smith --- Lib/http/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/http/server.py b/Lib/http/server.py index 195f9ee..ebc2a8f 100644 --- a/Lib/http/server.py +++ b/Lib/http/server.py @@ -781,7 +781,7 @@ class SimpleHTTPRequestHandler(BaseHTTPRequestHandler): 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.parse.unquote(path)) words = path.split('/') words = filter(None, words) -- cgit v0.12