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
c249bdab
Commit
c249bdab
authored
May 30, 2007
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Have mimify raise a DeprecationWarning. The docs and PEP 4 have listed the
module as deprecated for a while.
parent
90134c9a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
0 deletions
+9
-0
Lib/mimify.py
Lib/mimify.py
+4
-0
Lib/test/test___all__.py
Lib/test/test___all__.py
+2
-0
Lib/test/test_sundry.py
Lib/test/test_sundry.py
+1
-0
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/mimify.py
View file @
c249bdab
...
...
@@ -29,6 +29,10 @@ QUOTE = '> ' # string replies are quoted with
import
re
import
warnings
warnings
.
warn
(
"the mimify module is deprecated; use the email package instead"
,
DeprecationWarning
,
2
)
__all__
=
[
"mimify"
,
"unmimify"
,
"mime_encode_header"
,
"mime_decode_header"
]
qp
=
re
.
compile
(
'^content-transfer-encoding:
\
\
s*quoted-printable'
,
re
.
I
)
...
...
Lib/test/test___all__.py
View file @
c249bdab
...
...
@@ -9,6 +9,8 @@ warnings.filterwarnings("ignore", ".*popen2 module is deprecated.*",
DeprecationWarning
)
warnings
.
filterwarnings
(
"ignore"
,
"the MimeWriter module is deprecated.*"
,
DeprecationWarning
)
warnings
.
filterwarnings
(
"ignore"
,
"the mimify module is deprecated.*"
,
DeprecationWarning
)
class
AllTest
(
unittest
.
TestCase
):
...
...
Lib/test/test_sundry.py
View file @
c249bdab
...
...
@@ -6,6 +6,7 @@ import warnings
with
guard_warnings_filter
():
warnings
.
filterwarnings
(
'ignore'
,
r".*posixfile"
,
DeprecationWarning
)
warnings
.
filterwarnings
(
'ignore'
,
r".*mimify"
,
DeprecationWarning
)
from
test.test_support
import
verbose
...
...
Misc/NEWS
View file @
c249bdab
...
...
@@ -220,6 +220,8 @@ Core and builtins
Library
-------
- mimify now raises a DeprecationWarning upon import.
- MimeWriter now raises a DeprecationWarning upon import.
- tarfile.py: Improved unicode support. Unicode input names are now
...
...
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