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
d49f1d6c
Kaydet (Commit)
d49f1d6c
authored
May 13, 2004
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
_structure(): Make sure all output goes the to fp object.
üst
d0c12af7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Iterators.py
Lib/email/Iterators.py
+2
-2
No files found.
Lib/email/Iterators.py
Dosyayı görüntüle @
d49f1d6c
...
@@ -59,9 +59,9 @@ def _structure(msg, fp=None, level=0, include_default=False):
...
@@ -59,9 +59,9 @@ def _structure(msg, fp=None, level=0, include_default=False):
tab
=
' '
*
(
level
*
4
)
tab
=
' '
*
(
level
*
4
)
print
>>
fp
,
tab
+
msg
.
get_content_type
(),
print
>>
fp
,
tab
+
msg
.
get_content_type
(),
if
include_default
:
if
include_default
:
print
'[
%
s]'
%
msg
.
get_default_type
()
print
>>
fp
,
'[
%
s]'
%
msg
.
get_default_type
()
else
:
else
:
print
print
>>
fp
if
msg
.
is_multipart
():
if
msg
.
is_multipart
():
for
subpart
in
msg
.
get_payload
():
for
subpart
in
msg
.
get_payload
():
_structure
(
subpart
,
fp
,
level
+
1
,
include_default
)
_structure
(
subpart
,
fp
,
level
+
1
,
include_default
)
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