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
cbec700b
Kaydet (Commit)
cbec700b
authored
Mar 11, 2003
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
__init__(): Don't add a newline to _text if it doesn't already end in
one. Possibly controversial.
üst
a996d4f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
MIMEText.py
Lib/email/MIMEText.py
+1
-4
No files found.
Lib/email/MIMEText.py
Dosyayı görüntüle @
cbec700b
...
...
@@ -17,8 +17,7 @@ class MIMEText(MIMENonMultipart):
_encoder
=
None
):
"""Create a text/* type MIME document.
_text is the string for this message object. If the text does not end
in a newline, one is added.
_text is the string for this message object.
_subtype is the MIME sub content type, defaulting to "plain".
...
...
@@ -35,8 +34,6 @@ class MIMEText(MIMENonMultipart):
"""
MIMENonMultipart
.
__init__
(
self
,
'text'
,
_subtype
,
**
{
'charset'
:
_charset
})
if
_text
and
not
_text
.
endswith
(
'
\n
'
):
_text
+=
'
\n
'
self
.
set_payload
(
_text
,
_charset
)
if
_encoder
is
not
None
:
warnings
.
warn
(
'_encoder argument is obsolete.'
,
...
...
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