]> granicus.if.org Git - python/commitdiff
Merged revisions 81130 via svnmerge from
authorSenthil Kumaran <orsenthil@gmail.com>
Thu, 13 May 2010 03:37:23 +0000 (03:37 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Thu, 13 May 2010 03:37:23 +0000 (03:37 +0000)
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.
........

Lib/test/test_urlparse.py
Lib/urllib/parse.py

index e930e191d3cf799732762f9cbec7a24af436c3fc..400decd7c54127e9d58ffe79db7c1f7ca895ddd0 100644 (file)
@@ -104,7 +104,12 @@ class UrlParseTestCase(unittest.TestCase):
              ('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:
             self.checkRoundtrips(url, parsed, split)
index 3d541a72063406c6b1a46e25a840e030dbbc1e83..a391face7c39bd082d3928d94a18ac7b3dd9cfc1 100644 (file)
@@ -41,7 +41,7 @@ uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'imap',
 uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet',
                'imap', 'wais', 'file', 'mms', 'https', 'shttp',
                'snews', 'prospero', 'rtsp', 'rtspu', 'rsync', '',
-               'svn', 'svn+ssh', 'sftp','nfs']
+               'svn', 'svn+ssh', 'sftp', 'nfs',' git', 'git+ssh']
 non_hierarchical = ['gopher', 'hdl', 'mailto', 'news',
                     'telnet', 'wais', 'imap', 'snews', 'sip', 'sips']
 uses_params = ['ftp', 'hdl', 'prospero', 'http', 'imap',