summaryrefslogtreecommitdiff
path: root/stub.py
diff options
context:
space:
mode:
Diffstat (limited to 'stub.py')
-rw-r--r--stub.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/stub.py b/stub.py
index dae2a28f..9c316b99 100644
--- a/stub.py
+++ b/stub.py
@@ -43,6 +43,10 @@ except:
print >> sys.stderr, traceback.format_exc()
sys.exit(1)
+if sys.platform == "win32":
+ import msvcrt
+ msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
+
stdout = stdout.strip()
if stdout:
print stdout.strip(),