From: Senthil Kumaran Date: Mon, 30 Sep 2013 01:59:04 +0000 (-0700) Subject: Minor code improvement. Review comment by Eric V. Smith X-Git-Tag: v3.4.0a4~310^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=600b735062d2eb57ac9ec5c5e1e860c9af7371d4;p=thirdparty%2FPython%2Fcpython.git Minor code improvement. Review comment by Eric V. Smith --- diff --git a/Lib/http/server.py b/Lib/http/server.py index 195f9ee36b14..ebc2a8fcdc2f 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)