summaryrefslogtreecommitdiffstats
path: root/Lib/http
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2013-09-30 01:59:04 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2013-09-30 01:59:04 (GMT)
commit600b735062d2eb57ac9ec5c5e1e860c9af7371d4 (patch)
tree75989a580f4d66461b19aed498e2560b66a69ce1 /Lib/http
parentf63d55800770547d4dfff86797de8572fe609f4e (diff)
downloadcpython-600b735062d2eb57ac9ec5c5e1e860c9af7371d4.zip
cpython-600b735062d2eb57ac9ec5c5e1e860c9af7371d4.tar.gz
cpython-600b735062d2eb57ac9ec5c5e1e860c9af7371d4.tar.bz2
Minor code improvement. Review comment by Eric V. Smith
Diffstat (limited to 'Lib/http')
-rw-r--r--Lib/http/server.py2
1 files changed, 1 insertions, 1 deletions
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)