diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2011-08-03 10:37:22 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2011-08-03 10:37:22 (GMT) |
commit | 2a157d2a3d76960e696ef8004c237de4b424302e (patch) | |
tree | 648c7d3a78cef8e02b6058dee4b1e114eb7cba6a | |
parent | 86a1a8974dc23b2cdcb6cac3cb0babbfc6af296c (diff) | |
download | cpython-2a157d2a3d76960e696ef8004c237de4b424302e.zip cpython-2a157d2a3d76960e696ef8004c237de4b424302e.tar.gz cpython-2a157d2a3d76960e696ef8004c237de4b424302e.tar.bz2 |
Fix closes issue12683 - urljoin to work with relative join of svn scheme.
-rw-r--r-- | Lib/test/test_urlparse.py | 2 | ||||
-rw-r--r-- | Lib/urllib/parse.py | 3 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
3 files changed, 7 insertions, 1 deletions
diff --git a/Lib/test/test_urlparse.py b/Lib/test/test_urlparse.py index 72f3776..af200d5 100644 --- a/Lib/test/test_urlparse.py +++ b/Lib/test/test_urlparse.py @@ -371,6 +371,8 @@ class UrlParseTestCase(unittest.TestCase): self.checkJoin('http:///', '..','http:///') self.checkJoin('', 'http://a/b/c/g?y/./x','http://a/b/c/g?y/./x') self.checkJoin('', 'http://a/./g', 'http://a/./g') + self.checkJoin('svn://pathtorepo/dir1', 'dir2', 'svn://pathtorepo/dir2') + self.checkJoin('svn://pathtorepo/dir1', 'dir2', 'svn://pathtorepo/dir2') def test_RFC2732(self): str_cases = [ diff --git a/Lib/urllib/parse.py b/Lib/urllib/parse.py index 45ae202..01067ae 100644 --- a/Lib/urllib/parse.py +++ b/Lib/urllib/parse.py @@ -38,7 +38,8 @@ __all__ = ["urlparse", "urlunparse", "urljoin", "urldefrag", # A classification of schemes ('' means apply by default) uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'imap', 'wais', 'file', 'https', 'shttp', 'mms', - 'prospero', 'rtsp', 'rtspu', '', 'sftp'] + 'prospero', 'rtsp', 'rtspu', '', 'sftp', + 'svn', 'svn+ssh'] uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet', 'imap', 'wais', 'file', 'mms', 'https', 'shttp', 'snews', 'prospero', 'rtsp', 'rtspu', 'rsync', '', @@ -41,6 +41,9 @@ Core and Builtins Library ------- +- Issue #12683: urlparse updated to include svn as schemes that uses relative + paths. (svn from 1.5 onwards support relative path). + - Issues #11104, #8688: Fix the behavior of distutils' sdist command with manually-maintained MANIFEST files. |