diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-05-12 03:19:20 +0000 |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-05-12 03:19:20 +0000 |
commit | 43e5ef49b12ccba2c43ea003316a3ff23677fe0f (patch) | |
tree | aef2114c646819d1b7d44545306811445ed85f99 | |
parent | fea23a4d004673f2a2295669e94c9c9fb2229f4b (diff) | |
download | cpython-git-43e5ef49b12ccba2c43ea003316a3ff23677fe0f.tar.gz |
Deprecate the multifile module as per PEP 4.
-rw-r--r-- | Lib/multifile.py | 4 | ||||
-rw-r--r-- | Lib/test/test_multifile.py | 3 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/Lib/multifile.py b/Lib/multifile.py index e82a3fdeaf..35b0200c24 100644 --- a/Lib/multifile.py +++ b/Lib/multifile.py @@ -26,6 +26,10 @@ it normally attempts in order to make seeks relative to the beginning of the current file part. This may be useful when using MultiFile with a non- seekable stream object. """ +from warnings import warn +warn("the multifile module has been deprecated since Python 2.5", + DeprecationWarning, stacklevel=2) +del warn __all__ = ["MultiFile","Error"] diff --git a/Lib/test/test_multifile.py b/Lib/test/test_multifile.py index 437c394e1e..daf7ddefd8 100644 --- a/Lib/test/test_multifile.py +++ b/Lib/test/test_multifile.py @@ -1,5 +1,6 @@ +from test import test_support import mimetools -import multifile +multifile = test_support.import_module('multifile', deprecated=True) import cStringIO msg = """Mime-Version: 1.0 @@ -26,6 +26,8 @@ Extension Modules Library ------- +- The multifile module has been deprecated as per PEP 4. + - The SocketServer module has been renamed 'socketserver'. The old name is now deprecated. |