cpython: e147d5f3c897 (original) (raw)

Mercurial > cpython

changeset 81026:e147d5f3c897

Fix issue16713 - tel url parsing with params [#16713]

Senthil Kumaran senthil@uthcode.com
date Mon, 24 Dec 2012 14:01:48 -0800
parents e2e5181b10f8(current diff)727f26d1806f(diff)
children 60240ce64789
files Misc/NEWS
diffstat 3 files changed, 33 insertions(+), 1 deletions(-)[+] [-] Lib/test/test_urlparse.py 29 Lib/urllib/parse.py 2 Misc/NEWS 3

line wrap: on

line diff

--- a/Lib/test/test_urlparse.py +++ b/Lib/test/test_urlparse.py @@ -818,6 +818,35 @@ class UrlParseTestCase(unittest.TestCase p2 = urllib.parse.urlsplit('tel:+31641044153') self.assertEqual(p2.scheme, 'tel') self.assertEqual(p2.path, '+31641044153')

+

+

+

+

+ def test_main(): support.run_unittest(UrlParseTestCase)

--- a/Lib/urllib/parse.py +++ b/Lib/urllib/parse.py @@ -46,7 +46,7 @@ uses_netloc = ['ftp', 'http', 'gopher', 'svn', 'svn+ssh', 'sftp', 'nfs', 'git', 'git+ssh'] uses_params = ['ftp', 'hdl', 'prospero', 'http', 'imap', 'https', 'shttp', 'rtsp', 'rtspu', 'sip', 'sips',

These are not actually used anymore, but should stay for backwards

compatibility. (They are undocumented, but have a public-looking name.)

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -183,6 +183,9 @@ Library