Staging
v0.5.1
https://github.com/python/cpython
Revision bf3157b8e03f0a661f9f90fa0ab610f03fb2ea89 authored by Brett Cannon on 14 August 2008, 05:00:03 UTC, committed by Brett Cannon on 14 August 2008, 05:00:03 UTC
mimetools.

This has an unfortunate side-effect of potentially not letting any warning
about rfc822's deprecation be seen by user-visible code if rfc822 is not
imported before mimetools. This is because modules are cached in sys.modules
and thus do not have their deprecation triggered more than once. But this
silencing would have happened by other code that silences the use of mimetools
or rfc822 anyway in the stdlib or user code, and thus seems justified to be
done here.
1 parent eea8eda
History
Tip revision: bf3157b8e03f0a661f9f90fa0ab610f03fb2ea89 authored by Brett Cannon on 14 August 2008, 05:00:03 UTC
Silence the DeprecationWarning of rfc822 triggered by its importation in
Tip revision: bf3157b
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.bzrignore -rw-r--r-- 673 bytes
.hgignore -rw-r--r-- 866 bytes
.hgtags -rw-r--r-- 3.5 KB
LICENSE -rw-r--r-- 13.4 KB
Makefile.pre.in -rw-r--r-- 37.6 KB
README -rw-r--r-- 55.8 KB
configure -rwxr-xr-x 661.7 KB
configure.in -rw-r--r-- 102.5 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 28.6 KB
setup.py -rw-r--r-- 79.6 KB

README

back to top