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
d2856008
Kaydet (Commit)
d2856008
authored
May 09, 2004
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SF patch # 884030 by Amit Aronovitch; fixes the _subpart argument to match
documented semantics.
üst
bfe18c09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
MIMEMultipart.py
Lib/email/MIMEMultipart.py
+7
-5
No files found.
Lib/email/MIMEMultipart.py
Dosyayı görüntüle @
d2856008
# Copyright (C) 2002 Python Software Foundation
# Author: barry@
zope.com
(Barry Warsaw)
# Copyright (C) 2002
-2004
Python Software Foundation
# Author: barry@
python.org
(Barry Warsaw)
"""Base class for MIME multipart/* type messages.
"""
...
...
@@ -11,7 +11,8 @@ from email import MIMEBase
class
MIMEMultipart
(
MIMEBase
.
MIMEBase
):
"""Base class for MIME multipart/* type messages."""
def
__init__
(
self
,
_subtype
=
'mixed'
,
boundary
=
None
,
*
_subparts
,
**
_params
):
def
__init__
(
self
,
_subtype
=
'mixed'
,
boundary
=
None
,
_subparts
=
None
,
**
_params
):
"""Creates a multipart/* type message.
By default, creates a multipart/mixed message, with proper
...
...
@@ -24,7 +25,7 @@ class MIMEMultipart(MIMEBase.MIMEBase):
calculated as needed.
_subparts is a sequence of initial subparts for the payload. It
must be
possible to convert this sequence to
a list. You can always
must be
an iterable object, such as
a list. You can always
attach new subparts to the message by using the attach() method.
Additional parameters for the Content-Type header are taken from the
...
...
@@ -32,6 +33,7 @@ class MIMEMultipart(MIMEBase.MIMEBase):
"""
MIMEBase
.
MIMEBase
.
__init__
(
self
,
'multipart'
,
_subtype
,
**
_params
)
if
_subparts
:
self
.
attach
(
*
list
(
_subparts
))
for
p
in
_subparts
:
self
.
attach
(
p
)
if
boundary
:
self
.
set_boundary
(
boundary
)
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