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
6e3e6e0d
Kaydet (Commit)
6e3e6e0d
authored
Ock 06, 2008
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Forgot to backport the rest of #1637.
üst
81728cf4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
urlparse.py
Lib/urlparse.py
+6
-7
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/urlparse.py
Dosyayı görüntüle @
6e3e6e0d
...
@@ -169,13 +169,12 @@ def _splitparams(url):
...
@@ -169,13 +169,12 @@ def _splitparams(url):
return
url
[:
i
],
url
[
i
+
1
:]
return
url
[:
i
],
url
[
i
+
1
:]
def
_splitnetloc
(
url
,
start
=
0
):
def
_splitnetloc
(
url
,
start
=
0
):
for
c
in
'/?#'
:
# the order is important!
delim
=
len
(
url
)
# position of end of domain part of url, default is end
delim
=
url
.
find
(
c
,
start
)
for
c
in
'/?#'
:
# look for delimiters; the order is NOT important
if
delim
>=
0
:
wdelim
=
url
.
find
(
c
,
start
)
# find first of this delim
break
if
wdelim
>=
0
:
# if found
else
:
delim
=
min
(
delim
,
wdelim
)
# use earliest delim position
delim
=
len
(
url
)
return
url
[
start
:
delim
],
url
[
delim
:]
# return (domain, rest)
return
url
[
start
:
delim
],
url
[
delim
:]
def
urlsplit
(
url
,
scheme
=
''
,
allow_fragments
=
True
):
def
urlsplit
(
url
,
scheme
=
''
,
allow_fragments
=
True
):
"""Parse a URL into 5 components:
"""Parse a URL into 5 components:
...
...
Misc/NEWS
Dosyayı görüntüle @
6e3e6e0d
...
@@ -53,6 +53,8 @@ Core and builtins
...
@@ -53,6 +53,8 @@ Core and builtins
Library
Library
-------
-------
- Patch #1637: fix urlparse for URLs like '
http
://
x
.
com
?
arg
=/
foo
'.
- Issue #1735: TarFile.extractall() now correctly sets directory permissions
- Issue #1735: TarFile.extractall() now correctly sets directory permissions
and times.
and times.
...
...
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