mirror of https://github.com/python/cpython.git
Deprecate the multifile module as per PEP 4.
This commit is contained in:
parent
fea23a4d00
commit
43e5ef49b1
|
@ -26,6 +26,10 @@
|
|||
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"]
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue