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
90134c9a
Kaydet (Commit)
90134c9a
authored
May 30, 2007
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Have MimeWriter raise a DeprecationWarning as per PEP 4 and its documentation.
üst
b4eec28e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
0 deletions
+13
-0
MimeWriter.py
Lib/MimeWriter.py
+5
-0
test_MimeWriter.py
Lib/test/test_MimeWriter.py
+4
-0
test___all__.py
Lib/test/test___all__.py
+2
-0
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/MimeWriter.py
Dosyayı görüntüle @
90134c9a
...
...
@@ -14,6 +14,11 @@ import mimetools
__all__
=
[
"MimeWriter"
]
import
warnings
warnings
.
warn
(
"the MimeWriter module is deprecated; use the email package instead"
,
DeprecationWarning
,
2
)
class
MimeWriter
:
"""Generic MIME writer.
...
...
Lib/test/test_MimeWriter.py
Dosyayı görüntüle @
90134c9a
...
...
@@ -10,6 +10,10 @@ This should generate Barry's example, modulo some quotes and newlines.
import
unittest
,
sys
,
StringIO
from
test.test_support
import
run_unittest
import
warnings
warnings
.
filterwarnings
(
"ignore"
,
"the MimeWriter module is deprecated.*"
,
DeprecationWarning
)
from
MimeWriter
import
MimeWriter
SELLER
=
'''
\
...
...
Lib/test/test___all__.py
Dosyayı görüntüle @
90134c9a
...
...
@@ -7,6 +7,8 @@ warnings.filterwarnings("ignore", "the sets module is deprecated",
DeprecationWarning
,
"<string>"
)
warnings
.
filterwarnings
(
"ignore"
,
".*popen2 module is deprecated.*"
,
DeprecationWarning
)
warnings
.
filterwarnings
(
"ignore"
,
"the MimeWriter module is deprecated.*"
,
DeprecationWarning
)
class
AllTest
(
unittest
.
TestCase
):
...
...
Misc/NEWS
Dosyayı görüntüle @
90134c9a
...
...
@@ -220,6 +220,8 @@ Core and builtins
Library
-------
- MimeWriter now raises a DeprecationWarning upon import.
- tarfile.py: Improved unicode support. Unicode input names are now
officially supported. Added "errors" argument to the TarFile class.
...
...
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