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
66c3d18a
Kaydet (Commit)
66c3d18a
authored
Şub 08, 2014
tarafından
R David Murray
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge: #14983: always add a line end after a MIME boundary marker.
üst
12724265
e9c31470
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
7 deletions
+16
-7
generator.py
Lib/email/generator.py
+1
-2
msg_02.txt
Lib/test/test_email/data/msg_02.txt
+1
-0
test_email.py
Lib/test/test_email/test_email.py
+10
-5
NEWS
Misc/NEWS
+4
-0
No files found.
Lib/email/generator.py
Dosyayı görüntüle @
66c3d18a
...
@@ -299,9 +299,8 @@ class Generator:
...
@@ -299,9 +299,8 @@ class Generator:
# body-part
# body-part
self
.
_fp
.
write
(
body_part
)
self
.
_fp
.
write
(
body_part
)
# close-delimiter transport-padding
# close-delimiter transport-padding
self
.
write
(
self
.
_NL
+
'--'
+
boundary
+
'--'
)
self
.
write
(
self
.
_NL
+
'--'
+
boundary
+
'--'
+
self
.
_NL
)
if
msg
.
epilogue
is
not
None
:
if
msg
.
epilogue
is
not
None
:
self
.
write
(
self
.
_NL
)
if
self
.
_mangle_from_
:
if
self
.
_mangle_from_
:
epilogue
=
fcre
.
sub
(
'>From '
,
msg
.
epilogue
)
epilogue
=
fcre
.
sub
(
'>From '
,
msg
.
epilogue
)
else
:
else
:
...
...
Lib/test/test_email/data/msg_02.txt
Dosyayı görüntüle @
66c3d18a
...
@@ -119,6 +119,7 @@ hello
...
@@ -119,6 +119,7 @@ hello
--__--__----
--__--__----
--192.168.1.2.889.32614.987812255.500.21814
--192.168.1.2.889.32614.987812255.500.21814
Content-type: text/plain; charset=us-ascii
Content-type: text/plain; charset=us-ascii
Content-description: Digest Footer
Content-description: Digest Footer
...
...
Lib/test/test_email/test_email.py
Dosyayı görüntüle @
66c3d18a
...
@@ -1745,7 +1745,8 @@ From: bperson@dom.ain
...
@@ -1745,7 +1745,8 @@ From: bperson@dom.ain
--BOUNDARY
--BOUNDARY
--BOUNDARY--'''
)
--BOUNDARY--
'''
)
def
test_no_parts_in_a_multipart_with_empty_epilogue
(
self
):
def
test_no_parts_in_a_multipart_with_empty_epilogue
(
self
):
outer
=
MIMEBase
(
'multipart'
,
'mixed'
)
outer
=
MIMEBase
(
'multipart'
,
'mixed'
)
...
@@ -1790,7 +1791,8 @@ MIME-Version: 1.0
...
@@ -1790,7 +1791,8 @@ MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
hello world
hello world
--BOUNDARY--'''
)
--BOUNDARY--
'''
)
def
test_seq_parts_in_a_multipart_with_empty_preamble
(
self
):
def
test_seq_parts_in_a_multipart_with_empty_preamble
(
self
):
eq
=
self
.
ndiffAssertEqual
eq
=
self
.
ndiffAssertEqual
...
@@ -1816,7 +1818,8 @@ MIME-Version: 1.0
...
@@ -1816,7 +1818,8 @@ MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
hello world
hello world
--BOUNDARY--'''
)
--BOUNDARY--
'''
)
def
test_seq_parts_in_a_multipart_with_none_preamble
(
self
):
def
test_seq_parts_in_a_multipart_with_none_preamble
(
self
):
...
@@ -1842,7 +1845,8 @@ MIME-Version: 1.0
...
@@ -1842,7 +1845,8 @@ MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
hello world
hello world
--BOUNDARY--'''
)
--BOUNDARY--
'''
)
def
test_seq_parts_in_a_multipart_with_none_epilogue
(
self
):
def
test_seq_parts_in_a_multipart_with_none_epilogue
(
self
):
...
@@ -1868,7 +1872,8 @@ MIME-Version: 1.0
...
@@ -1868,7 +1872,8 @@ MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit
hello world
hello world
--BOUNDARY--'''
)
--BOUNDARY--
'''
)
def
test_seq_parts_in_a_multipart_with_empty_epilogue
(
self
):
def
test_seq_parts_in_a_multipart_with_empty_epilogue
(
self
):
...
...
Misc/NEWS
Dosyayı görüntüle @
66c3d18a
...
@@ -27,6 +27,10 @@ Core and Builtins
...
@@ -27,6 +27,10 @@ Core and Builtins
Library
Library
-------
-------
- Issue #14983: email.generator now always adds a line end after each MIME
boundary marker, instead of doing so only when there is an epilogue. This
fixes an RFC compliance bug and solves an issue with signed MIME parts.
- Issue #20540: Fix a performance regression (vs. Python 3.2) when layering
- Issue #20540: Fix a performance regression (vs. Python 3.2) when layering
a multiprocessing Connection over a TCP socket. For small payloads, Nagle'
s
a multiprocessing Connection over a TCP socket. For small payloads, Nagle'
s
algorithm
would
introduce
idle
delays
before
the
entire
transmission
of
a
algorithm
would
introduce
idle
delays
before
the
entire
transmission
of
a
...
...
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