Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
43e5ef49
Commit
43e5ef49
authored
May 12, 2008
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate the multifile module as per PEP 4.
parent
fea23a4d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
Lib/multifile.py
Lib/multifile.py
+4
-0
Lib/test/test_multifile.py
Lib/test/test_multifile.py
+2
-1
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/multifile.py
View file @
43e5ef49
...
...
@@ -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"
]
...
...
Lib/test/test_multifile.py
View file @
43e5ef49
from
test
import
test_support
import
mimetools
import
multifile
multifile
=
test_support
.
import_module
(
'multifile'
,
deprecated
=
True
)
import
cStringIO
msg
=
"""Mime-Version: 1.0
...
...
Misc/NEWS
View file @
43e5ef49
...
...
@@ -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.
...
...
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