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
36432ea7
Kaydet (Commit)
36432ea7
authored
May 27, 2012
tarafından
R David Murray
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add '__all__' to _encoded_words and mark QByteMap as private.
üst
7e203498
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
_encoded_words.py
Lib/email/_encoded_words.py
+12
-2
No files found.
Lib/email/_encoded_words.py
Dosyayı görüntüle @
36432ea7
...
@@ -46,6 +46,16 @@ import functools
...
@@ -46,6 +46,16 @@ import functools
from
string
import
ascii_letters
,
digits
from
string
import
ascii_letters
,
digits
from
email
import
errors
from
email
import
errors
__all__
=
[
'decode_q'
,
'encode_q'
,
'decode_b'
,
'encode_b'
,
'len_q'
,
'len_b'
,
'decode'
,
'encode'
,
]
#
#
# Quoted Printable
# Quoted Printable
#
#
...
@@ -60,7 +70,7 @@ def decode_q(encoded):
...
@@ -60,7 +70,7 @@ def decode_q(encoded):
# dict mapping bytes to their encoded form
# dict mapping bytes to their encoded form
class
QByteMap
(
dict
):
class
_
QByteMap
(
dict
):
safe
=
b
'-!*+/'
+
ascii_letters
.
encode
(
'ascii'
)
+
digits
.
encode
(
'ascii'
)
safe
=
b
'-!*+/'
+
ascii_letters
.
encode
(
'ascii'
)
+
digits
.
encode
(
'ascii'
)
...
@@ -71,7 +81,7 @@ class QByteMap(dict):
...
@@ -71,7 +81,7 @@ class QByteMap(dict):
self
[
key
]
=
"={:02X}"
.
format
(
key
)
self
[
key
]
=
"={:02X}"
.
format
(
key
)
return
self
[
key
]
return
self
[
key
]
_q_byte_map
=
QByteMap
()
_q_byte_map
=
_
QByteMap
()
# In headers spaces are mapped to '_'.
# In headers spaces are mapped to '_'.
_q_byte_map
[
ord
(
' '
)]
=
'_'
_q_byte_map
[
ord
(
' '
)]
=
'_'
...
...
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