Kaydet (Commit) 43e5ef49 authored tarafından Brett Cannon's avatar Brett Cannon

Deprecate the multifile module as per PEP 4.

üst fea23a4d
...@@ -26,6 +26,10 @@ it normally attempts in order to make seeks relative to the beginning of the ...@@ -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- current file part. This may be useful when using MultiFile with a non-
seekable stream object. 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"] __all__ = ["MultiFile","Error"]
......
from test import test_support
import mimetools import mimetools
import multifile multifile = test_support.import_module('multifile', deprecated=True)
import cStringIO import cStringIO
msg = """Mime-Version: 1.0 msg = """Mime-Version: 1.0
......
...@@ -26,6 +26,8 @@ Extension Modules ...@@ -26,6 +26,8 @@ Extension Modules
Library Library
------- -------
- The multifile module has been deprecated as per PEP 4.
- The SocketServer module has been renamed 'socketserver'. The old - The SocketServer module has been renamed 'socketserver'. The old
name is now deprecated. name is now deprecated.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment