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
2a869138
Kaydet (Commit)
2a869138
authored
May 11, 2008
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Deprecated the mhlib module for removal in 3.0.
üst
79964cf6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
4 deletions
+15
-4
mhlib.rst
Doc/library/mhlib.rst
+6
-0
mhlib.py
Lib/mhlib.py
+4
-0
test_mhlib.py
Lib/test/test_mhlib.py
+2
-2
test_py3kwarn.py
Lib/test/test_py3kwarn.py
+1
-1
test_pyclbr.py
Lib/test/test_pyclbr.py
+0
-1
NEWS
Misc/NEWS
+2
-0
No files found.
Doc/library/mhlib.rst
Dosyayı görüntüle @
2a869138
...
@@ -3,6 +3,12 @@
...
@@ -3,6 +3,12 @@
.. module:: mhlib
.. module:: mhlib
:synopsis: Manipulate MH mailboxes from Python.
:synopsis: Manipulate MH mailboxes from Python.
:deprecated:
.. deprecated:: 2.6
The :mod:`mhlib` module has been removed in Python 3.0. Use the
:mod:`mailbox` instead.
.. sectionauthor:: Skip Montanaro <skip@pobox.com>
.. sectionauthor:: Skip Montanaro <skip@pobox.com>
The :mod:`mhlib` module provides a Python interface to MH folders and their
The :mod:`mhlib` module provides a Python interface to MH folders and their
...
...
Lib/mhlib.py
Dosyayı görüntüle @
2a869138
...
@@ -52,6 +52,10 @@ s = m.getheadertext(pred) # text of message's headers, filtered by pred
...
@@ -52,6 +52,10 @@ s = m.getheadertext(pred) # text of message's headers, filtered by pred
s = m.getbodytext() # text of message's body, decoded
s = m.getbodytext() # text of message's body, decoded
s = m.getbodytext(0) # text of message's body, not decoded
s = m.getbodytext(0) # text of message's body, not decoded
"""
"""
from
warnings
import
warnpy3k
warnpy3k
(
"the mhlib module has been removed in Python 3.0; use the mailbox "
"module instead"
,
stacklevel
=
2
)
del
warnpy3k
# XXX To do, functionality:
# XXX To do, functionality:
# - annotate messages
# - annotate messages
...
...
Lib/test/test_mhlib.py
Dosyayı görüntüle @
2a869138
...
@@ -7,10 +7,10 @@
...
@@ -7,10 +7,10 @@
### mhlib. It should.
### mhlib. It should.
import
unittest
import
unittest
from
test.test_support
import
run_unittest
,
TESTFN
,
TestSkipped
from
test.test_support
import
run_unittest
,
TESTFN
,
TestSkipped
,
import_module
import
os
,
StringIO
import
os
,
StringIO
import
sys
import
sys
import
mhlib
mhlib
=
import_module
(
'mhlib'
,
deprecated
=
True
)
if
(
sys
.
platform
.
startswith
(
"win"
)
or
sys
.
platform
==
"riscos"
or
if
(
sys
.
platform
.
startswith
(
"win"
)
or
sys
.
platform
==
"riscos"
or
sys
.
platform
.
startswith
(
"atheos"
)):
sys
.
platform
.
startswith
(
"atheos"
)):
...
...
Lib/test/test_py3kwarn.py
Dosyayı görüntüle @
2a869138
...
@@ -130,7 +130,7 @@ class TestStdlibRemovals(unittest.TestCase):
...
@@ -130,7 +130,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'
,
'fpformat'
,
'Bastion'
,
'compiler'
,
'dircache'
,
'fpformat'
,
'ihooks'
)
'ihooks'
,
'mhlib'
)
inclusive_platforms
=
{
'irix'
:(
'pure'
,)}
inclusive_platforms
=
{
'irix'
:(
'pure'
,)}
# XXX Don't know if lib-tk is only installed if _tkinter is built.
# XXX Don't know if lib-tk is only installed if _tkinter is built.
optional_modules
=
(
'bsddb185'
,
'Canvas'
,
'dl'
,
'linuxaudiodev'
)
optional_modules
=
(
'bsddb185'
,
'Canvas'
,
'dl'
,
'linuxaudiodev'
)
...
...
Lib/test/test_pyclbr.py
Dosyayı görüntüle @
2a869138
...
@@ -164,7 +164,6 @@ class PyclbrTest(TestCase):
...
@@ -164,7 +164,6 @@ class PyclbrTest(TestCase):
# These were once about the 10 longest modules
# These were once about the 10 longest modules
cm
(
'random'
,
ignore
=
(
'Random'
,))
# from _random import Random as CoreGenerator
cm
(
'random'
,
ignore
=
(
'Random'
,))
# from _random import Random as CoreGenerator
cm
(
'cgi'
,
ignore
=
(
'log'
,))
# set with = in module
cm
(
'cgi'
,
ignore
=
(
'log'
,))
# set with = in module
cm
(
'mhlib'
)
cm
(
'urllib'
,
ignore
=
(
'getproxies_registry'
,
cm
(
'urllib'
,
ignore
=
(
'getproxies_registry'
,
'proxy_bypass_registry'
,
'proxy_bypass_registry'
,
'open_https'
,
'open_https'
,
...
...
Misc/NEWS
Dosyayı görüntüle @
2a869138
...
@@ -23,6 +23,8 @@ Extension Modules
...
@@ -23,6 +23,8 @@ Extension Modules
Library
Library
-------
-------
- The mhlib module has been deprecated for removal in Python 3.0.
- The linuxaudiodev module has been deprecated for removal in Python 3.0.
- The linuxaudiodev module has been deprecated for removal in Python 3.0.
- The ihooks module has been deprecated for removal in Python 3.0.
- The ihooks module has been deprecated for removal in Python 3.0.
...
...
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