summaryrefslogtreecommitdiff
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-08-21 21:10:31 -0400
committerR David Murray <rdmurray@bitdance.com>2013-08-21 21:10:31 -0400
commit9b75a095ea1b53a609aee5162914821b06e0008e (patch)
tree83d017cb275668996e13e878f94f338e7f89f389 /Python/Python-ast.c
parentac38ecdbb2b5663a98044c53998baebf02673597 (diff)
downloadcpython-9b75a095ea1b53a609aee5162914821b06e0008e.tar.gz
#18324: set_payload now correctly handles binary input.
This also backs out the previous fixes for for #14360, #1717, and #16564. Those bugs were actually caused by the fact that set_payload didn't decode to str, thus rendering the model inconsistent. This fix does mean the data processed by the encoder functions goes through an extra encode/decode cycle, but it means the model is always consistent. Future API updates will provide a better way to encode payloads, which will bypass this minor de-optimization. Tests by Vajrasky Kok.
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions