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
c249bdab
Kaydet (Commit)
c249bdab
authored
May 30, 2007
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Have mimify raise a DeprecationWarning. The docs and PEP 4 have listed the
module as deprecated for a while.
üst
90134c9a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
0 deletions
+9
-0
mimify.py
Lib/mimify.py
+4
-0
test___all__.py
Lib/test/test___all__.py
+2
-0
test_sundry.py
Lib/test/test_sundry.py
+1
-0
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/mimify.py
Dosyayı görüntüle @
c249bdab
...
...
@@ -29,6 +29,10 @@ QUOTE = '> ' # string replies are quoted with
import
re
import
warnings
warnings
.
warn
(
"the mimify module is deprecated; use the email package instead"
,
DeprecationWarning
,
2
)
__all__
=
[
"mimify"
,
"unmimify"
,
"mime_encode_header"
,
"mime_decode_header"
]
qp
=
re
.
compile
(
'^content-transfer-encoding:
\\
s*quoted-printable'
,
re
.
I
)
...
...
Lib/test/test___all__.py
Dosyayı görüntüle @
c249bdab
...
...
@@ -9,6 +9,8 @@ warnings.filterwarnings("ignore", ".*popen2 module is deprecated.*",
DeprecationWarning
)
warnings
.
filterwarnings
(
"ignore"
,
"the MimeWriter module is deprecated.*"
,
DeprecationWarning
)
warnings
.
filterwarnings
(
"ignore"
,
"the mimify module is deprecated.*"
,
DeprecationWarning
)
class
AllTest
(
unittest
.
TestCase
):
...
...
Lib/test/test_sundry.py
Dosyayı görüntüle @
c249bdab
...
...
@@ -6,6 +6,7 @@ import warnings
with
guard_warnings_filter
():
warnings
.
filterwarnings
(
'ignore'
,
r".*posixfile"
,
DeprecationWarning
)
warnings
.
filterwarnings
(
'ignore'
,
r".*mimify"
,
DeprecationWarning
)
from
test.test_support
import
verbose
...
...
Misc/NEWS
Dosyayı görüntüle @
c249bdab
...
...
@@ -220,6 +220,8 @@ Core and builtins
Library
-------
- mimify now raises a DeprecationWarning upon import.
- MimeWriter now raises a DeprecationWarning upon import.
- tarfile.py: Improved unicode support. Unicode input names are now
...
...
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