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
52720c54
Kaydet (Commit)
52720c54
authored
Nis 02, 2009
tarafından
R. David Murray
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add missing iteritems() call to the for loop in mailbox.MH.get_message().
Fixes issue2625.
üst
e2942d07
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
mailbox.py
Lib/mailbox.py
+1
-1
test_mailbox.py
Lib/test/test_mailbox.py
+6
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/mailbox.py
Dosyayı görüntüle @
52720c54
...
@@ -911,7 +911,7 @@ class MH(Mailbox):
...
@@ -911,7 +911,7 @@ class MH(Mailbox):
_unlock_file
(
f
)
_unlock_file
(
f
)
finally
:
finally
:
f
.
close
()
f
.
close
()
for
name
,
key_list
in
self
.
get_sequences
():
for
name
,
key_list
in
self
.
get_sequences
()
.
iteritems
()
:
if
key
in
key_list
:
if
key
in
key_list
:
msg
.
add_sequence
(
name
)
msg
.
add_sequence
(
name
)
return
msg
return
msg
...
...
Lib/test/test_mailbox.py
Dosyayı görüntüle @
52720c54
...
@@ -936,6 +936,12 @@ class TestMH(TestMailbox):
...
@@ -936,6 +936,12 @@ class TestMH(TestMailbox):
self
.
_box
.
remove
(
key1
)
self
.
_box
.
remove
(
key1
)
self
.
assert_
(
self
.
_box
.
get_sequences
()
==
{
'flagged'
:[
key0
]})
self
.
assert_
(
self
.
_box
.
get_sequences
()
==
{
'flagged'
:[
key0
]})
def
test_issue2625
(
self
):
msg0
=
mailbox
.
MHMessage
(
self
.
_template
%
0
)
msg0
.
add_sequence
(
'foo'
)
key0
=
self
.
_box
.
add
(
msg0
)
refmsg0
=
self
.
_box
.
get_message
(
key0
)
def
test_pack
(
self
):
def
test_pack
(
self
):
# Pack the contents of the mailbox
# Pack the contents of the mailbox
msg0
=
mailbox
.
MHMessage
(
self
.
_template
%
0
)
msg0
=
mailbox
.
MHMessage
(
self
.
_template
%
0
)
...
...
Misc/NEWS
Dosyayı görüntüle @
52720c54
...
@@ -202,6 +202,9 @@ Core and Builtins
...
@@ -202,6 +202,9 @@ Core and Builtins
Library
Library
-------
-------
- Issue 2625: added missing iteritems() call to the for loop in
mailbox.MH.get_message().
- Issue 5585: Add the ability to call an initializer to mulitiprocessing.manager
- Issue 5585: Add the ability to call an initializer to mulitiprocessing.manager
so that users can install custonm handlers/etc.
so that users can install custonm handlers/etc.
...
...
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