[pypy-svn] r8661 - pypy/dist/pypy/interpreter
arigo at codespeak.net
arigo at codespeak.net
Fri Jan 28 13:23:58 CET 2005
Author: arigo
Date: Fri Jan 28 13:23:57 2005
New Revision: 8661
Modified:
pypy/dist/pypy/interpreter/error.py
Log:
Disable ANSI color codes by default on Windows. Better solution welcome.
Modified: pypy/dist/pypy/interpreter/error.py
==============================================================================
--- pypy/dist/pypy/interpreter/error.py (original)
+++ pypy/dist/pypy/interpreter/error.py Fri Jan 28 13:23:57 2005
@@ -137,7 +137,7 @@
def debug_print(text, file=None):
if file is None: file = sys.stderr
text = text.rstrip()
- if file.isatty():
+ if sys.platform != "win32" and file.isatty():
text = ('\x1b[31m' + # ANSI color code "red"
text +
'\x1b[0m') # ANSI color code "reset"
More information about the Pypy-commit
mailing list