summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2007-01-23 13:42:00 (GMT)
committerThomas Wouters <thomas@python.org>2007-01-23 13:42:00 (GMT)
commitafea529088d6447b1fc46318bdeec7c5de875202 (patch)
tree45ea7de7b5a460a0badf6e67fdd2ee766cba3b7f /PC
parentd2e22903d353e8037b0e448a976052886f75f4df (diff)
downloadcpython-afea529088d6447b1fc46318bdeec7c5de875202.zip
cpython-afea529088d6447b1fc46318bdeec7c5de875202.tar.gz
cpython-afea529088d6447b1fc46318bdeec7c5de875202.tar.bz2
SF patch #1630975: Fix crash when replacing sys.stdout in sitecustomize
When running the interpreter in an environment that would cause it to set stdout/stderr/stdin's encoding, having a sitecustomize that would replace them with something other than PyFile objects would crash the interpreter. Fix it by simply ignoring the encoding-setting for non-files. This could do with a test, but I can think of no maintainable and portable way to test this bug, short of adding a sitecustomize.py to the buildsystem and have it always run with it (hmmm....)
Diffstat (limited to 'PC')
0 files changed, 0 insertions, 0 deletions