Staging
v0.8.1
v0.8.1
Revision 1e42ab6e434044fdfcdc99b5b631ed972825a92c authored by Thomas Wouters on 23 January 2007, 15:09:19 UTC, committed by Thomas Wouters on 23 January 2007, 15:09:19 UTC
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....)
1 parent 741e0bb
File | Mode | Size |
---|---|---|
Demo | ||
Doc | ||
Grammar | ||
Include | ||
Lib | ||
Mac | ||
Misc | ||
Modules | ||
Objects | ||
PC | ||
PCbuild | ||
Parser | ||
Python | ||
RISCOS | ||
Tools | ||
.hgtags | -rw-r--r-- | 3.2 KB |
LICENSE | -rw-r--r-- | 13.3 KB |
Makefile.pre.in | -rw-r--r-- | 32.5 KB |
README | -rw-r--r-- | 50.1 KB |
aclocal.m4 | -rw-r--r-- | 2.1 KB |
configure | -rwxr-xr-x | 586.5 KB |
configure.in | -rw-r--r-- | 90.0 KB |
install-sh | -rwxr-xr-x | 7.0 KB |
pyconfig.h.in | -rw-r--r-- | 24.2 KB |
setup.py | -rw-r--r-- | 54.8 KB |
Computing file changes ...