]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
add support for svn: and svn+ssh: URL schemes to urlparse
authorFred Drake <fdrake@acm.org>
Fri, 29 Jul 2005 15:57:59 +0000 (15:57 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 29 Jul 2005 15:57:59 +0000 (15:57 +0000)
(backported from trunk urlparse.py 1.48, test_urlparse.py 1.15)

Lib/test/test_urlparse.py
Lib/urlparse.py

index 04572ba60df9b36dba8faed54f7a71f8e2c76c30..39ada0692566b18e521aa75d9dce315de87fc1a0 100644 (file)
@@ -35,6 +35,11 @@ class UrlParseTestCase(unittest.TestCase):
               '', '', ''),
              ('mms', 'wms.sys.hinet.net', '/cts/Drama/09006251100.asf',
               '', '')),
+            ('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/',
+              '', ''))
             ]
         for url, parsed, split in testcases:
             self.checkRoundtrips(url, parsed, split)
index 7fd1633ab95f7587c9bf5e5cbd48b48070a693d1..8f55b3fcb36de2ad7cac73b91f8c58ac1559a21c 100644 (file)
@@ -13,7 +13,8 @@ uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'imap',
                                'prospero', 'rtsp', 'rtspu', '']
 uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet',
                              'imap', 'wais', 'file', 'mms', 'https', 'shttp',
-                             'snews', 'prospero', 'rtsp', 'rtspu', 'rsync', '']
+                             'snews', 'prospero', 'rtsp', 'rtspu', 'rsync', '',
+                             'svn', 'svn+ssh']
 non_hierarchical = ['gopher', 'hdl', 'mailto', 'news',
                                   'telnet', 'wais', 'imap', 'snews', 'sip']
 uses_params = ['ftp', 'hdl', 'prospero', 'http', 'imap',