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
4322c178
Kaydet (Commit)
4322c178
authored
May 26, 2012
tarafından
Senthil Kumaran
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #14920: Fix the help(urllib.parse) failure on locale C terminals. Just have ascii in help msg
üst
0b6f6c82
ffa4b2c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
parse.py
Lib/urllib/parse.py
+1
-1
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/urllib/parse.py
Dosyayı görüntüle @
4322c178
...
@@ -707,7 +707,7 @@ def quote_plus(string, safe='', encoding=None, errors=None):
...
@@ -707,7 +707,7 @@ def quote_plus(string, safe='', encoding=None, errors=None):
def
quote_from_bytes
(
bs
,
safe
=
'/'
):
def
quote_from_bytes
(
bs
,
safe
=
'/'
):
"""Like quote(), but accepts a bytes object rather than a str, and does
"""Like quote(), but accepts a bytes object rather than a str, and does
not perform string-to-bytes encoding. It always returns an ASCII string.
not perform string-to-bytes encoding. It always returns an ASCII string.
quote_from_bytes(b'abc def
\x
ab
') -> 'abc
%20
def
%
AB
'
quote_from_bytes(b'abc def
\x
3f
') -> 'abc
%20
def
%3
f
'
"""
"""
if
not
isinstance
(
bs
,
(
bytes
,
bytearray
)):
if
not
isinstance
(
bs
,
(
bytes
,
bytearray
)):
raise
TypeError
(
"quote_from_bytes() expected bytes"
)
raise
TypeError
(
"quote_from_bytes() expected bytes"
)
...
...
Misc/NEWS
Dosyayı görüntüle @
4322c178
...
@@ -44,6 +44,9 @@ Core and Builtins
...
@@ -44,6 +44,9 @@ Core and Builtins
Library
Library
-------
-------
- Issue #14920: Fix the help(urllib.parse) failure on locale C on terminals.
Have ascii characters in help.
- Issue #14548: Make multiprocessing finalizers check pid before
- Issue #14548: Make multiprocessing finalizers check pid before
running to cope with possibility of gc running just after fork.
running to cope with possibility of gc running just after fork.
...
...
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