Staging
v0.5.0
https://github.com/python/cpython
Revision b7deff1ddc2702c7adb18bc22c484103d9460601 authored by R. David Murray on 30 January 2011, 06:21:28 UTC, committed by R. David Murray on 30 January 2011, 06:21:28 UTC
Although this patch contains API changes and is rather weighty for an
RC phase, the mailbox module was essentially unusable without the patch
since it would produce UnicodeErrors when handling non-ascii input
at arbitrary and somewhat mysterious places, and any non-trivial amount
of email processing will encounter messages with non-ascii bytes.
The release manager approved the patch application.

The changes allow binary input, and reject non-ASCII string input early
with a useful message instead of failing mysteriously later.  Binary
is used internally for reading and writing the mailbox files.  StringIO
and Text file input are deprecated.

Initial patch by Victor Stinner, validated and expanded by R. David Murray.
1 parent b02f7c0
History
Tip revision: b7deff1ddc2702c7adb18bc22c484103d9460601 authored by R. David Murray on 30 January 2011, 06:21:28 UTC
#9124: mailbox now accepts binary input and uses binary internally
Tip revision: b7deff1
File Mode Size
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
Tools
.bzrignore -rw-r--r-- 556 bytes
.gitignore -rw-r--r-- 566 bytes
.hgeol -rw-r--r-- 503 bytes
.hgignore -rw-r--r-- 790 bytes
.hgtags -rw-r--r-- 4.1 KB
LICENSE -rw-r--r-- 14.2 KB
Makefile.pre.in -rw-r--r-- 41.9 KB
README -rw-r--r-- 6.5 KB
configure -rwxr-xr-x 395.0 KB
configure.in -rw-r--r-- 121.9 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 33.8 KB
setup.py -rw-r--r-- 79.4 KB

README

back to top