[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [37361] trunk/blender/release/scripts/ modules/console_python.py: svn merge -r37360:37359 release/scripts/modules/ console_python.py (undo recent commit, turns out this bug isnt fixed)

Campbell Barton ideasman42 at gmail.com
Fri Jun 10 11:33:23 CEST 2011


Revision: 37361
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37361
Author:   campbellbarton
Date:     2011-06-10 09:33:23 +0000 (Fri, 10 Jun 2011)
Log Message:
-----------
svn merge -r37360:37359 release/scripts/modules/console_python.py (undo recent commit, turns out this bug isnt fixed)

Revision Links:
--------------
    http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37360

Modified Paths:
--------------
    trunk/blender/release/scripts/modules/console_python.py

Modified: trunk/blender/release/scripts/modules/console_python.py
===================================================================
--- trunk/blender/release/scripts/modules/console_python.py	2011-06-10 07:43:33 UTC (rev 37360)
+++ trunk/blender/release/scripts/modules/console_python.py	2011-06-10 09:33:23 UTC (rev 37361)
@@ -79,6 +79,12 @@
 
     if console_data:
         console, stdout, stderr = console_data
+
+        # XXX, bug in python 3.1.2, 3.2 ? (worked in 3.1.1)
+        # seems there is no way to clear StringIO objects for writing, have to make new ones each time.
+        import io
+        stdout = io.StringIO()
+        stderr = io.StringIO()
     else:
         if _BPY_MAIN_OWN:
             import types




More information about the Bf-blender-cvs mailing list