[pypy-svn] r13060 - pypy/dist/pypy/tool

pedronis at codespeak.net pedronis at codespeak.net
Sat Jun 4 19:47:16 CEST 2005


Author: pedronis
Date: Sat Jun  4 19:47:16 2005
New Revision: 13060

Removed:
   pypy/dist/pypy/tool/ansi_print.py
Log:
removing to undo spurious check-in



Deleted: /pypy/dist/pypy/tool/ansi_print.py
==============================================================================
--- /pypy/dist/pypy/tool/ansi_print.py	Sat Jun  4 19:47:16 2005
+++ (empty file)
@@ -1,25 +0,0 @@
-"""
-A color print.
-"""
-
-import sys
-
-f = None
-n = 0
-
-def ansi_print(text, esc, file=None):
-    if file is None: file = sys.stderr
-    text = text.rstrip()
-    global f,n
-    if not text.startswith('faking') and esc == "31":
-        if not f:
-            f = open("warnings.log",'w')
-        n += 1
-        f.write("<<< %03d\n"  % n)
-        f.write(text+'\n')
-        f.flush()
-    if sys.platform != "win32" and file.isatty():
-        text = ('\x1b[%sm' % esc  +  
-                text +
-                '\x1b[0m')     # ANSI color code "reset"
-    file.write(text + '\n')



More information about the Pypy-commit mailing list