Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
f432aeca
Kaydet (Commit)
f432aeca
authored
Agu 03, 2011
tarafından
Senthil Kumaran
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix closes issue12683 - urljoin to work with relative join of svn scheme.
üst
c1ee4ef9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
test_urlparse.py
Lib/test/test_urlparse.py
+1
-0
urlparse.py
Lib/urlparse.py
+2
-1
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_urlparse.py
Dosyayı görüntüle @
f432aeca
...
...
@@ -339,6 +339,7 @@ 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'
)
def
test_RFC2732
(
self
):
for
url
,
hostname
,
port
in
[
...
...
Lib/urlparse.py
Dosyayı görüntüle @
f432aeca
...
...
@@ -34,7 +34,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'
]
uses_netloc
=
[
'ftp'
,
'http'
,
'gopher'
,
'nntp'
,
'telnet'
,
'imap'
,
'wais'
,
'file'
,
'mms'
,
'https'
,
'shttp'
,
'snews'
,
'prospero'
,
'rtsp'
,
'rtspu'
,
'rsync'
,
''
,
...
...
Misc/NEWS
Dosyayı görüntüle @
f432aeca
...
...
@@ -37,6 +37,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).
- Issue #11933: Fix incorrect mtime comparison in distutils.
- Issues #11104, #8688: Fix the behavior of distutils'
sdist
command
with
...
...
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