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
26305a03
Kaydet (Commit)
26305a03
authored
Haz 12, 2008
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add py3k warnings to rfc822
üst
6fd3321d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
3 deletions
+10
-3
rfc822.rst
Doc/library/rfc822.rst
+2
-1
rfc822.py
Lib/rfc822.py
+3
-0
test_py3kwarn.py
Lib/test/test_py3kwarn.py
+1
-1
test_rfc822.py
Lib/test/test_rfc822.py
+2
-1
NEWS
Misc/NEWS
+2
-0
No files found.
Doc/library/rfc822.rst
Dosyayı görüntüle @
26305a03
...
@@ -9,7 +9,8 @@
...
@@ -9,7 +9,8 @@
.. deprecated:: 2.3
.. deprecated:: 2.3
The :mod:`email` package should be used in preference to the :mod:`rfc822`
The :mod:`email` package should be used in preference to the :mod:`rfc822`
module. This module is present only to maintain backward compatibility.
module. This module is present only to maintain backward compatibility, and
has been removed in 3.0.
This module defines a class, :class:`Message`, which represents an "email
This module defines a class, :class:`Message`, which represents an "email
message" as defined by the Internet standard :rfc:`2822`. [#]_ Such messages
message" as defined by the Internet standard :rfc:`2822`. [#]_ Such messages
...
...
Lib/rfc822.py
Dosyayı görüntüle @
26305a03
...
@@ -73,6 +73,9 @@ There are also some utility functions here.
...
@@ -73,6 +73,9 @@ There are also some utility functions here.
import
time
import
time
from
warnings
import
warnpy3k
warnpy3k
(
"in 3.x, rfc822 has been removed in favor of the email package"
)
__all__
=
[
"Message"
,
"AddressList"
,
"parsedate"
,
"parsedate_tz"
,
"mktime_tz"
]
__all__
=
[
"Message"
,
"AddressList"
,
"parsedate"
,
"parsedate_tz"
,
"mktime_tz"
]
_blanklines
=
(
'
\r\n
'
,
'
\n
'
)
# Optimization for islast()
_blanklines
=
(
'
\r\n
'
,
'
\n
'
)
# Optimization for islast()
...
...
Lib/test/test_py3kwarn.py
Dosyayı görüntüle @
26305a03
...
@@ -198,7 +198,7 @@ class TestStdlibRemovals(unittest.TestCase):
...
@@ -198,7 +198,7 @@ class TestStdlibRemovals(unittest.TestCase):
# import side-effect.
# import side-effect.
all_platforms
=
(
'audiodev'
,
'imputil'
,
'mutex'
,
'user'
,
'new'
,
'rexec'
,
all_platforms
=
(
'audiodev'
,
'imputil'
,
'mutex'
,
'user'
,
'new'
,
'rexec'
,
'Bastion'
,
'compiler'
,
'dircache'
,
'mimetools'
,
'fpformat'
,
'Bastion'
,
'compiler'
,
'dircache'
,
'mimetools'
,
'fpformat'
,
'ihooks'
,
'mhlib'
,
'statvfs'
,
'htmllib'
,
'sgmllib'
)
'ihooks'
,
'mhlib'
,
'statvfs'
,
'htmllib'
,
'sgmllib'
,
'rfc822'
)
inclusive_platforms
=
{
'irix'
:
(
'pure'
,
'AL'
,
'al'
,
'CD'
,
'cd'
,
'cddb'
,
inclusive_platforms
=
{
'irix'
:
(
'pure'
,
'AL'
,
'al'
,
'CD'
,
'cd'
,
'cddb'
,
'cdplayer'
,
'CL'
,
'cl'
,
'DEVICE'
,
'GL'
,
'cdplayer'
,
'CL'
,
'cl'
,
'DEVICE'
,
'GL'
,
'gl'
,
'ERRNO'
,
'FILE'
,
'FL'
,
'flp'
,
'fl'
,
'gl'
,
'ERRNO'
,
'FILE'
,
'FL'
,
'flp'
,
'fl'
,
...
...
Lib/test/test_rfc822.py
Dosyayı görüntüle @
26305a03
import
rfc822
import
unittest
import
unittest
from
test
import
test_support
from
test
import
test_support
rfc822
=
test_support
.
import_module
(
"rfc822"
,
deprecated
=
True
)
try
:
try
:
from
cStringIO
import
StringIO
from
cStringIO
import
StringIO
except
ImportError
:
except
ImportError
:
...
...
Misc/NEWS
Dosyayı görüntüle @
26305a03
...
@@ -84,6 +84,8 @@ Extension Modules
...
@@ -84,6 +84,8 @@ Extension Modules
Library
Library
-------
-------
- The rfc822 module has been deprecated for removal in 3.0.
- The mimetools module has been deprecated for removal in 3.0.
- The mimetools module has been deprecated for removal in 3.0.
- The ctypes.byref function now takes an optional second parameter
- The ctypes.byref function now takes an optional second parameter
...
...
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