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
d2c310f0
Kaydet (Commit)
d2c310f0
authored
Eki 01, 2010
tarafından
R. David Murray
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix a couple spelling errors in comments and delete redundant __len__ def.
üst
0f476d49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
message.py
Lib/email/message.py
+2
-5
No files found.
Lib/email/message.py
Dosyayı görüntüle @
d2c310f0
...
@@ -98,7 +98,7 @@ class Message:
...
@@ -98,7 +98,7 @@ class Message:
objects, otherwise it is a string.
objects, otherwise it is a string.
Message objects implement part of the `mapping' interface, which assumes
Message objects implement part of the `mapping' interface, which assumes
there is exactly one occurr
a
nce of the header per message. Some headers
there is exactly one occurr
e
nce of the header per message. Some headers
do in fact appear multiple times (e.g. Received) and for those headers,
do in fact appear multiple times (e.g. Received) and for those headers,
you must use the explicit API to set or get all the headers. Not all of
you must use the explicit API to set or get all the headers. Not all of
the mapping methods are implemented.
the mapping methods are implemented.
...
@@ -290,7 +290,7 @@ class Message:
...
@@ -290,7 +290,7 @@ class Message:
Return None if the header is missing instead of raising an exception.
Return None if the header is missing instead of raising an exception.
Note that if the header appeared multiple times, exactly which
Note that if the header appeared multiple times, exactly which
occurr
a
nce gets returned is undefined. Use get_all() to get all
occurr
e
nce gets returned is undefined. Use get_all() to get all
the values matching a header field name.
the values matching a header field name.
"""
"""
return
self
.
get
(
name
)
return
self
.
get
(
name
)
...
@@ -322,9 +322,6 @@ class Message:
...
@@ -322,9 +322,6 @@ class Message:
for
field
,
value
in
self
.
_headers
:
for
field
,
value
in
self
.
_headers
:
yield
field
yield
field
def
__len__
(
self
):
return
len
(
self
.
_headers
)
def
keys
(
self
):
def
keys
(
self
):
"""Return a list of all the message's header field names.
"""Return a list of all the message's header field names.
...
...
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