Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'release/ui/space_console.py')
-rw-r--r--release/ui/space_console.py16
1 files changed, 3 insertions, 13 deletions
diff --git a/release/ui/space_console.py b/release/ui/space_console.py
index 8814553e55f..2cf41a1f88f 100644
--- a/release/ui/space_console.py
+++ b/release/ui/space_console.py
@@ -99,19 +99,9 @@ def get_console(console_id):
console = code.InteractiveConsole(namespace)
- if sys.version.startswith('3'):
- import io
- stdout = io.StringIO()
- stderr = io.StringIO()
- elif sys.version.startswith('2.6'):
- import io
- stdout = io.BytesIO() # Py2x support
- stderr = io.BytesIO()
- else:
- import cStringIO
- stdout = cStringIO.StringIO()
- stderr = cStringIO.StringIO()
-
+ import io
+ stdout = io.StringIO()
+ stderr = io.StringIO()
consoles[console_id]= namespace, console, stdout, stderr