Commit ca7bd25a authored by Senthil Kumaran's avatar Senthil Kumaran

Merged revisions 81130 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81130 | senthil.kumaran | 2010-05-13 08:55:21 +0530 (Thu, 13 May 2010) | 3 lines

  Fix Issue8657 - adding git and git+ssh as know schemes.
........
parent 5ce31df7
...@@ -100,7 +100,12 @@ class UrlParseTestCase(unittest.TestCase): ...@@ -100,7 +100,12 @@ class UrlParseTestCase(unittest.TestCase):
('svn+ssh', 'svn.zope.org', '/repos/main/ZConfig/trunk/', ('svn+ssh', 'svn.zope.org', '/repos/main/ZConfig/trunk/',
'', '', ''), '', '', ''),
('svn+ssh', 'svn.zope.org', '/repos/main/ZConfig/trunk/', ('svn+ssh', 'svn.zope.org', '/repos/main/ZConfig/trunk/',
'', '')) '', '')),
('git+ssh://git@github.com/user/project.git',
('git+ssh', 'git@github.com','/user/project.git',
'','',''),
('git+ssh', 'git@github.com','/user/project.git',
'', ''))
] ]
for url, parsed, split in testcases: for url, parsed, split in testcases:
self.checkRoundtrips(url, parsed, split) self.checkRoundtrips(url, parsed, split)
......
...@@ -5,21 +5,22 @@ urlparse module is based upon the following RFC specifications. ...@@ -5,21 +5,22 @@ urlparse module is based upon the following RFC specifications.
RFC 3986 (STD66): "Uniform Resource Identifiers" by T. Berners-Lee, R. Fielding RFC 3986 (STD66): "Uniform Resource Identifiers" by T. Berners-Lee, R. Fielding
and L. Masinter, January 2005. and L. Masinter, January 2005.
RFC2396: "Uniform Resource Identifiers (URI)": Generic Syntax by T. RFC 2396: "Uniform Resource Identifiers (URI)": Generic Syntax by T.
Berners-Lee, R. Fielding, and L. Masinter, August 1998. Berners-Lee, R. Fielding, and L. Masinter, August 1998.
RFC2368: "The mailto URL scheme", by P.Hoffman , L Masinter, J. Zwinski, July 1998. RFC 2368: "The mailto URL scheme", by P.Hoffman , L Masinter, J. Zwinski, July 1998.
RFC 1808: "Relative Uniform Resource Locators", by R. Fielding, UC Irvine, June RFC 1808: "Relative Uniform Resource Locators", by R. Fielding, UC Irvine, June
1995. 1995.
RFC1738: "Uniform Resource Locators (URL)" by T. Berners-Lee, L. Masinter, M. RFC 1738: "Uniform Resource Locators (URL)" by T. Berners-Lee, L. Masinter, M.
McCahill, December 1994 McCahill, December 1994
RFC 3986 is considered the current standard and any changes to urlparse module RFC 3986 is considered the current standard and any future changes to
should conform to this. urlparse module is not entirely compliant with this. urlparse module should conform with it. The urlparse module is
The defacto scenarios of parsing are considered sometimes and for backward currently not entirely compliant with this RFC due to defacto
compatiblity purposes, older RFC uses of parsing are retained. The testcases in scenarios for parsing, and for backward compatibility purposes, some
parsing quirks from older RFCs are retained. The testcases in
test_urlparse.py provides a good indicator of parsing behavior. test_urlparse.py provides a good indicator of parsing behavior.
""" """
...@@ -34,7 +35,7 @@ uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'imap', ...@@ -34,7 +35,7 @@ uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'imap',
uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet', uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet',
'imap', 'wais', 'file', 'mms', 'https', 'shttp', 'imap', 'wais', 'file', 'mms', 'https', 'shttp',
'snews', 'prospero', 'rtsp', 'rtspu', 'rsync', '', 'snews', 'prospero', 'rtsp', 'rtspu', 'rsync', '',
'svn', 'svn+ssh', 'sftp'] 'svn', 'svn+ssh', 'sftp','nfs','git', 'git+ssh']
non_hierarchical = ['gopher', 'hdl', 'mailto', 'news', non_hierarchical = ['gopher', 'hdl', 'mailto', 'news',
'telnet', 'wais', 'imap', 'snews', 'sip', 'sips'] 'telnet', 'wais', 'imap', 'snews', 'sip', 'sips']
uses_params = ['ftp', 'hdl', 'prospero', 'http', 'imap', uses_params = ['ftp', 'hdl', 'prospero', 'http', 'imap',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment