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
d80f7be5
Kaydet (Commit)
d80f7be5
authored
Eyl 06, 2013
tarafından
Senthil Kumaran
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
merge from 3.3
Improve urlencode docstring. Patch by Brian Brazil. Closes issue #15350
üst
b2372959
324ae385
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
parse.py
Lib/urllib/parse.py
+4
-4
No files found.
Lib/urllib/parse.py
Dosyayı görüntüle @
d80f7be5
...
@@ -728,7 +728,7 @@ def quote_from_bytes(bs, safe='/'):
...
@@ -728,7 +728,7 @@ def quote_from_bytes(bs, safe='/'):
return
''
.
join
([
quoter
(
char
)
for
char
in
bs
])
return
''
.
join
([
quoter
(
char
)
for
char
in
bs
])
def
urlencode
(
query
,
doseq
=
False
,
safe
=
''
,
encoding
=
None
,
errors
=
None
):
def
urlencode
(
query
,
doseq
=
False
,
safe
=
''
,
encoding
=
None
,
errors
=
None
):
"""Encode a
sequence of two-element tuples or dictionary
into a URL query string.
"""Encode a
dict or sequence of two-element tuples
into a URL query string.
If any values in the query arg are sequences and doseq is true, each
If any values in the query arg are sequences and doseq is true, each
sequence element is converted to a separate parameter.
sequence element is converted to a separate parameter.
...
@@ -737,9 +737,9 @@ def urlencode(query, doseq=False, safe='', encoding=None, errors=None):
...
@@ -737,9 +737,9 @@ def urlencode(query, doseq=False, safe='', encoding=None, errors=None):
parameters in the output will match the order of parameters in the
parameters in the output will match the order of parameters in the
input.
input.
The
query arg may be either a string or a bytes type. When query arg is a
The
components of a query arg may each be either a string or a bytes type.
string, the safe, encoding and error parameters are sent the quote_plus for
When a component is a string, the safe, encoding and error parameters are
encoding.
sent to the quote_plus function for
encoding.
"""
"""
if
hasattr
(
query
,
"items"
):
if
hasattr
(
query
,
"items"
):
...
...
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