diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-05-01 18:56:24 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-05-01 18:56:24 +0400 |
commit | 35ca2091529cc7817f52ecc36b09f27713f474c1 (patch) | |
tree | 7f5a2e1ba442451fdd74515758c653ae8c797617 /source/blender/python | |
parent | fa25d7cf7b31f8884e46aef8a45721e97166860d (diff) |
Code cleanup: remove unused kludge for Py/Win encoding
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_interface.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c index 6dab586e796..045acc65d1e 100644 --- a/source/blender/python/intern/bpy_interface.c +++ b/source/blender/python/intern/bpy_interface.c @@ -273,24 +273,6 @@ void BPY_python_start(int argc, const char **argv) Py_Initialize(); - /* THIS IS BAD: see http://bugs.python.org/issue16129 */ - /* this clobbers the stdout on exit (no 'MEM_printmemlist_stats') */ -#if 0 - /* until python provides a reliable way to set the env var */ - PyRun_SimpleString("import sys, io\n" - "sys.__backup_stdio__ = sys.__stdout__, sys.__stderr__\n" /* else we loose the FD's [#32720] */ - "sys.__stdout__ = sys.stdout = io.TextIOWrapper(io.open(sys.stdout.fileno(), 'wb', -1), " - "encoding='utf-8', errors='surrogateescape', newline='\\n', line_buffering=True)\n" - "sys.__stderr__ = sys.stderr = io.TextIOWrapper(io.open(sys.stderr.fileno(), 'wb', -1), " - "encoding='utf-8', errors='surrogateescape', newline='\\n', line_buffering=True)\n"); - if (PyErr_Occurred()) { - PyErr_Print(); - PyErr_Clear(); - } -#endif - /* end the baddness */ - - // PySys_SetArgv(argc, argv); /* broken in py3, not a huge deal */ /* sigh, why do python guys not have a (char **) version anymore? */ { |