Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2a157d2a
Commit
2a157d2a
authored
Aug 03, 2011
by
Senthil Kumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix closes issue12683 - urljoin to work with relative join of svn scheme.
parent
86a1a897
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
Lib/test/test_urlparse.py
Lib/test/test_urlparse.py
+2
-0
Lib/urllib/parse.py
Lib/urllib/parse.py
+2
-1
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_urlparse.py
View file @
2a157d2a
...
...
@@ -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
=
[
...
...
Lib/urllib/parse.py
View file @
2a157d2a
...
...
@@ -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'
,
''
,
...
...
Misc/NEWS
View file @
2a157d2a
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment