Commit d8320d15 authored by Saul Ibarra's avatar Saul Ibarra

Simplify code


The lifetime of the StringIO object is really short, no need to use the
high performance version
parent e807472e
......@@ -21,11 +21,7 @@ if os.path.basename(script_dir)=='bin' and os.path.exists(os.path.join(parent_di
if getattr(sys, 'frozen', False):
try:
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO
# Override stdout and stderr, save output to a StringIO object, then to a file
sys.stdout = sys.stderr = StringIO()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment