summaryrefslogtreecommitdiffstats
path: root/Lib/urllib/parse.py
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-02-19 07:45:03 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-02-19 07:45:03 (GMT)
commita8dbb246a52ad74efb22a65a2e29ae0d304b5f04 (patch)
treee47f47fab7ce53edd11b26d557e7ec030917f601 /Lib/urllib/parse.py
parent31e8af9ea5f1d9d696c8efea40fc774a37dfc776 (diff)
downloadcpython-a8dbb246a52ad74efb22a65a2e29ae0d304b5f04.zip
cpython-a8dbb246a52ad74efb22a65a2e29ae0d304b5f04.tar.gz
cpython-a8dbb246a52ad74efb22a65a2e29ae0d304b5f04.tar.bz2
Merged revisions 78236 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r78236 | senthil.kumaran | 2010-02-19 13:12:50 +0530 (Fri, 19 Feb 2010) | 9 lines Merged revisions 78234 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78234 | senthil.kumaran | 2010-02-19 13:02:48 +0530 (Fri, 19 Feb 2010) | 2 lines Fix for Issue7904. urlparse.urlsplit to handle schemes in the way defined by RFC3986 ........ ................
Diffstat (limited to 'Lib/urllib/parse.py')
-rw-r--r--Lib/urllib/parse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib/parse.py b/Lib/urllib/parse.py
index a27b975..c1ae5ff 100644
--- a/Lib/urllib/parse.py
+++ b/Lib/urllib/parse.py
@@ -168,7 +168,7 @@ def urlsplit(url, scheme='', allow_fragments=True):
break
else:
scheme, url = url[:i].lower(), url[i+1:]
- if scheme in uses_netloc and url[:2] == '//':
+ if url[:2] == '//':
netloc, url = _splitnetloc(url, 2)
if allow_fragments and scheme in uses_fragment and '#' in url:
url, fragment = url.split('#', 1)