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
eda29f47
Kaydet (Commit)
eda29f47
authored
Haz 29, 2012
tarafından
Senthil Kumaran
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
urllib.parse cleanup. rename keywords used as variables
üst
b8b6a68b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
parse.py
Lib/urllib/parse.py
+7
-7
No files found.
Lib/urllib/parse.py
Dosyayı görüntüle @
eda29f47
...
@@ -279,8 +279,8 @@ def urlparse(url, scheme='', allow_fragments=True):
...
@@ -279,8 +279,8 @@ def urlparse(url, scheme='', allow_fragments=True):
Note that we don't break the components up in smaller bits
Note that we don't break the components up in smaller bits
(e.g. netloc is a single string) and we don't expand
%
escapes."""
(e.g. netloc is a single string) and we don't expand
%
escapes."""
url
,
scheme
,
_coerce_result
=
_coerce_args
(
url
,
scheme
)
url
,
scheme
,
_coerce_result
=
_coerce_args
(
url
,
scheme
)
tuple
=
urlsplit
(
url
,
scheme
,
allow_fragments
)
splitresult
=
urlsplit
(
url
,
scheme
,
allow_fragments
)
scheme
,
netloc
,
url
,
query
,
fragment
=
tuple
scheme
,
netloc
,
url
,
query
,
fragment
=
splitresult
if
scheme
in
uses_params
and
';'
in
url
:
if
scheme
in
uses_params
and
';'
in
url
:
url
,
params
=
_splitparams
(
url
)
url
,
params
=
_splitparams
(
url
)
else
:
else
:
...
@@ -547,15 +547,15 @@ def parse_qs(qs, keep_blank_values=False, strict_parsing=False,
...
@@ -547,15 +547,15 @@ def parse_qs(qs, keep_blank_values=False, strict_parsing=False,
encoding and errors: specify how to decode percent-encoded sequences
encoding and errors: specify how to decode percent-encoded sequences
into Unicode characters, as accepted by the bytes.decode() method.
into Unicode characters, as accepted by the bytes.decode() method.
"""
"""
dic
t
=
{}
parsed_resul
t
=
{}
pairs
=
parse_qsl
(
qs
,
keep_blank_values
,
strict_parsing
,
pairs
=
parse_qsl
(
qs
,
keep_blank_values
,
strict_parsing
,
encoding
=
encoding
,
errors
=
errors
)
encoding
=
encoding
,
errors
=
errors
)
for
name
,
value
in
pairs
:
for
name
,
value
in
pairs
:
if
name
in
dic
t
:
if
name
in
parsed_resul
t
:
dic
t
[
name
]
.
append
(
value
)
parsed_resul
t
[
name
]
.
append
(
value
)
else
:
else
:
dic
t
[
name
]
=
[
value
]
parsed_resul
t
[
name
]
=
[
value
]
return
dic
t
return
parsed_resul
t
def
parse_qsl
(
qs
,
keep_blank_values
=
False
,
strict_parsing
=
False
,
def
parse_qsl
(
qs
,
keep_blank_values
=
False
,
strict_parsing
=
False
,
encoding
=
'utf-8'
,
errors
=
'replace'
):
encoding
=
'utf-8'
,
errors
=
'replace'
):
...
...
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