Staging
v0.5.1
v0.5.1
https://github.com/python/cpython
Revision 905c8c3d8dfe081d91e399aa5fd93d1659655264 authored by R David Murray on 08 February 2014, 16:48:20 UTC, committed by R David Murray on 08 February 2014, 16:48:20 UTC
This is a bit of an ugly hack because of the way generator pieces together the output message. The deepcopys aren't too expensive, though, because we know it is only called on messages that are not multiparts, and the payload (the thing that could be large) is an immutable object. Test and preliminary work on patch by Vajrasky Kok.
1 parent 7c389e2
Tip revision: 905c8c3d8dfe081d91e399aa5fd93d1659655264 authored by R David Murray on 08 February 2014, 16:48:20 UTC
#19772: Do not mutate message when downcoding to 7bit.
#19772: Do not mutate message when downcoding to 7bit.
Tip revision: 905c8c3
File | Mode | Size |
---|---|---|
_ctypes | ||
_decimal | ||
_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-- | 7.4 KB |
_bz2module.c | -rw-r--r-- | 18.8 KB |
_codecsmodule.c | -rw-r--r-- | 33.8 KB |
_collectionsmodule.c | -rw-r--r-- | 55.9 KB |
_cryptmodule.c | -rw-r--r-- | 1.4 KB |
_csv.c | -rw-r--r-- | 49.5 KB |
_curses_panel.c | -rw-r--r-- | 14.2 KB |
_cursesmodule.c | -rw-r--r-- | 100.8 KB |
_datetimemodule.c | -rw-r--r-- | 177.8 KB |
_dbmmodule.c | -rw-r--r-- | 11.9 KB |
_elementtree.c | -rw-r--r-- | 105.2 KB |
_freeze_importlib.c | -rw-r--r-- | 4.0 KB |
_functoolsmodule.c | -rw-r--r-- | 16.9 KB |
_gdbmmodule.c | -rw-r--r-- | 17.0 KB |
_gestalt.c | -rw-r--r-- | 2.5 KB |
_hashopenssl.c | -rw-r--r-- | 18.1 KB |
_heapqmodule.c | -rw-r--r-- | 22.2 KB |
_json.c | -rw-r--r-- | 58.2 KB |
_localemodule.c | -rw-r--r-- | 16.9 KB |
_lsprof.c | -rw-r--r-- | 26.7 KB |
_lzmamodule.c | -rw-r--r-- | 39.7 KB |
_math.c | -rw-r--r-- | 7.0 KB |
_math.h | -rw-r--r-- | 995 bytes |
_pickle.c | -rw-r--r-- | 185.9 KB |
_posixsubprocess.c | -rw-r--r-- | 27.8 KB |
_randommodule.c | -rw-r--r-- | 16.9 KB |
_scproxy.c | -rw-r--r-- | 6.0 KB |
_sre.c | -rw-r--r-- | 118.8 KB |
_ssl.c | -rw-r--r-- | 89.1 KB |
_ssl_data.h | -rw-r--r-- | 57.8 KB |
_struct.c | -rw-r--r-- | 58.0 KB |
_testbuffer.c | -rw-r--r-- | 81.7 KB |
_testcapimodule.c | -rw-r--r-- | 86.1 KB |
_testembed.c | -rw-r--r-- | 1.3 KB |
_threadmodule.c | -rw-r--r-- | 41.5 KB |
_tkinter.c | -rw-r--r-- | 85.6 KB |
_weakref.c | -rw-r--r-- | 3.3 KB |
_winapi.c | -rw-r--r-- | 38.5 KB |
addrinfo.h | -rw-r--r-- | 6.1 KB |
ar_beos | -rwxr-xr-x | 1.8 KB |
arraymodule.c | -rw-r--r-- | 83.4 KB |
atexitmodule.c | -rw-r--r-- | 7.8 KB |
audioop.c | -rw-r--r-- | 51.8 KB |
binascii.c | -rw-r--r-- | 52.1 KB |
cmathmodule.c | -rw-r--r-- | 37.1 KB |
config.c.in | -rw-r--r-- | 1.6 KB |
errnomodule.c | -rw-r--r-- | 28.1 KB |
faulthandler.c | -rw-r--r-- | 30.9 KB |
fcntlmodule.c | -rw-r--r-- | 18.0 KB |
fpectlmodule.c | -rw-r--r-- | 11.0 KB |
fpetestmodule.c | -rw-r--r-- | 5.7 KB |
gc_weakref.txt | -rw-r--r-- | 11.2 KB |
gcmodule.c | -rw-r--r-- | 52.1 KB |
getaddrinfo.c | -rw-r--r-- | 18.4 KB |
getbuildinfo.c | -rw-r--r-- | 1.2 KB |
getnameinfo.c | -rw-r--r-- | 6.2 KB |
getpath.c | -rw-r--r-- | 27.2 KB |
grpmodule.c | -rw-r--r-- | 5.4 KB |
hashlib.h | -rw-r--r-- | 1.0 KB |
itertoolsmodule.c | -rw-r--r-- | 141.8 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-- | 22.6 KB |
makesetup | -rwxr-xr-x | 7.3 KB |
makexp_aix | -rwxr-xr-x | 3.2 KB |
mathmodule.c | -rw-r--r-- | 63.6 KB |
md5module.c | -rw-r--r-- | 15.3 KB |
mmapmodule.c | -rw-r--r-- | 44.6 KB |
nismodule.c | -rw-r--r-- | 11.7 KB |
operator.c | -rw-r--r-- | 30.6 KB |
ossaudiodev.c | -rw-r--r-- | 36.3 KB |
parsermodule.c | -rw-r--r-- | 98.3 KB |
posixmodule.c | -rw-r--r-- | 336.4 KB |
posixmodule.h | -rw-r--r-- | 553 bytes |
pwdmodule.c | -rw-r--r-- | 5.8 KB |
pyexpat.c | -rw-r--r-- | 62.7 KB |
python.c | -rw-r--r-- | 1.8 KB |
readline.c | -rw-r--r-- | 31.6 KB |
resource.c | -rw-r--r-- | 10.0 KB |
rotatingtree.c | -rw-r--r-- | 3.4 KB |
rotatingtree.h | -rw-r--r-- | 901 bytes |
selectmodule.c | -rw-r--r-- | 69.4 KB |
sha1module.c | -rw-r--r-- | 14.3 KB |
sha256module.c | -rw-r--r-- | 22.8 KB |
sha512module.c | -rw-r--r-- | 28.5 KB |
signalmodule.c | -rw-r--r-- | 36.6 KB |
socketmodule.c | -rw-r--r-- | 196.8 KB |
socketmodule.h | -rw-r--r-- | 6.0 KB |
spwdmodule.c | -rw-r--r-- | 5.4 KB |
sre.h | -rw-r--r-- | 2.9 KB |
sre_constants.h | -rw-r--r-- | 2.4 KB |
symtablemodule.c | -rw-r--r-- | 2.8 KB |
syslogmodule.c | -rw-r--r-- | 10.1 KB |
termios.c | -rw-r--r-- | 20.4 KB |
testcapi_long.h | -rw-r--r-- | 6.8 KB |
timemodule.c | -rw-r--r-- | 45.3 KB |
tkappinit.c | -rw-r--r-- | 5.2 KB |
tkinter.h | -rw-r--r-- | 807 bytes |
unicodedata.c | -rw-r--r-- | 41.2 KB |
unicodedata_db.h | -rw-r--r-- | 450.5 KB |
unicodename_db.h | -rw-r--r-- | 1.5 MB |
xxlimited.c | -rw-r--r-- | 6.6 KB |
xxmodule.c | -rw-r--r-- | 12.1 KB |
xxsubtype.c | -rw-r--r-- | 10.6 KB |
zipimport.c | -rw-r--r-- | 51.8 KB |
zlibmodule.c | -rw-r--r-- | 39.3 KB |
Computing file changes ...