Staging
v0.8.1
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
_ctypes
_io
_multiprocessing
_sqlite
cjkcodecs
expat
zlib
Setup.config.in -rw-r--r-- 408 bytes
Setup.dist -rw-r--r-- 14.7 KB
_bisectmodule.c -rw-r--r-- 6.9 KB
_codecsmodule.c -rw-r--r-- 33.2 KB
_collectionsmodule.c -rw-r--r-- 49.6 KB
_csv.c -rw-r--r-- 46.9 KB
_curses_panel.c -rw-r--r-- 13.7 KB
_cursesmodule.c -rw-r--r-- 88.8 KB
_datetimemodule.c -rw-r--r-- 175.1 KB
_dbmmodule.c -rw-r--r-- 11.8 KB
_elementtree.c -rw-r--r-- 80.9 KB
_functoolsmodule.c -rw-r--r-- 12.8 KB
_gdbmmodule.c -rw-r--r-- 16.8 KB
_gestalt.c -rw-r--r-- 2.5 KB
_hashopenssl.c -rw-r--r-- 18.0 KB
_heapqmodule.c -rw-r--r-- 21.1 KB
_json.c -rw-r--r-- 55.3 KB
_localemodule.c -rw-r--r-- 17.8 KB
_lsprof.c -rw-r--r-- 27.3 KB
_math.c -rw-r--r-- 6.5 KB
_math.h -rw-r--r-- 1.0 KB
_pickle.c -rw-r--r-- 180.7 KB
_posixsubprocess.c -rw-r--r-- 16.1 KB
_randommodule.c -rw-r--r-- 16.7 KB
_scproxy.c -rw-r--r-- 6.0 KB
_sre.c -rw-r--r-- 113.2 KB
_ssl.c -rw-r--r-- 64.8 KB
_struct.c -rw-r--r-- 55.4 KB
_testcapimodule.c -rw-r--r-- 76.8 KB
_threadmodule.c -rw-r--r-- 41.4 KB
_time.c -rw-r--r-- 899 bytes
_time.h -rw-r--r-- 138 bytes
_tkinter.c -rw-r--r-- 81.9 KB
_weakref.c -rw-r--r-- 3.3 KB
addrinfo.h -rw-r--r-- 6.1 KB
ar_beos -rwxr-xr-x 1.8 KB
arraymodule.c -rw-r--r-- 80.1 KB
atexitmodule.c -rw-r--r-- 7.6 KB
audioop.c -rw-r--r-- 51.6 KB
binascii.c -rw-r--r-- 50.8 KB
bz2module.c -rw-r--r-- 60.3 KB
cmathmodule.c -rw-r--r-- 36.9 KB
config.c.in -rw-r--r-- 1.6 KB
cryptmodule.c -rw-r--r-- 1.4 KB
errnomodule.c -rw-r--r-- 25.8 KB
fcntlmodule.c -rw-r--r-- 17.9 KB
fpectlmodule.c -rw-r--r-- 11.4 KB
fpetestmodule.c -rw-r--r-- 5.7 KB
gc_weakref.txt -rw-r--r-- 11.2 KB
gcmodule.c -rw-r--r-- 48.1 KB
getaddrinfo.c -rw-r--r-- 18.4 KB
getbuildinfo.c -rw-r--r-- 1.1 KB
getnameinfo.c -rw-r--r-- 6.2 KB
getpath.c -rw-r--r-- 23.8 KB
grpmodule.c -rw-r--r-- 5.2 KB
hashlib.h -rw-r--r-- 1.0 KB
itertoolsmodule.c -rw-r--r-- 119.1 KB
ld_so_aix.in -rw-r--r-- 6.1 KB
ld_so_beos -rwxr-xr-x 1.8 KB
main.c -rw-r--r-- 20.9 KB
makesetup -rwxr-xr-x 7.3 KB
makexp_aix -rwxr-xr-x 3.2 KB
mathmodule.c -rw-r--r-- 62.2 KB
md5module.c -rw-r--r-- 15.4 KB
mmapmodule.c -rw-r--r-- 43.1 KB
nismodule.c -rw-r--r-- 11.7 KB
operator.c -rw-r--r-- 26.3 KB
ossaudiodev.c -rw-r--r-- 34.6 KB
parsermodule.c -rw-r--r-- 94.8 KB
posixmodule.c -rw-r--r-- 234.2 KB
pwdmodule.c -rw-r--r-- 5.5 KB
pyexpat.c -rw-r--r-- 61.7 KB
python.c -rw-r--r-- 1.7 KB
readline.c -rw-r--r-- 30.6 KB
resource.c -rw-r--r-- 9.8 KB
rotatingtree.c -rw-r--r-- 3.4 KB
rotatingtree.h -rw-r--r-- 901 bytes
selectmodule.c -rw-r--r-- 58.4 KB
sha1module.c -rw-r--r-- 14.5 KB
sha256module.c -rw-r--r-- 22.9 KB
sha512module.c -rw-r--r-- 28.6 KB
signalmodule.c -rw-r--r-- 25.0 KB
socketmodule.c -rw-r--r-- 153.0 KB
socketmodule.h -rw-r--r-- 5.6 KB
spwdmodule.c -rw-r--r-- 5.4 KB
sre.h -rw-r--r-- 2.7 KB
sre_constants.h -rw-r--r-- 2.4 KB
symtablemodule.c -rw-r--r-- 2.7 KB
syslogmodule.c -rw-r--r-- 10.0 KB
termios.c -rw-r--r-- 20.6 KB
testcapi_long.h -rw-r--r-- 5.9 KB
timemodule.c -rw-r--r-- 31.7 KB
tkappinit.c -rw-r--r-- 5.1 KB
tkinter.h -rw-r--r-- 807 bytes
unicodedata.c -rw-r--r-- 37.8 KB
unicodedata_db.h -rw-r--r-- 437.4 KB
unicodename_db.h -rw-r--r-- 1.4 MB
xxlimited.c -rw-r--r-- 6.5 KB
xxmodule.c -rw-r--r-- 12.0 KB
xxsubtype.c -rw-r--r-- 10.6 KB
zipimport.c -rw-r--r-- 39.5 KB
zlibmodule.c -rw-r--r-- 33.3 KB

back to top