[pypy-svn] r41095 - in pypy/dist/pypy: jit/hintannotator tool

xoraxax at codespeak.net xoraxax at codespeak.net
Thu Mar 22 17:23:38 CET 2007


Author: xoraxax
Date: Thu Mar 22 17:23:36 2007
New Revision: 41095

Modified:
   pypy/dist/pypy/jit/hintannotator/bookkeeper.py
   pypy/dist/pypy/tool/ansi_print.py
Log:
Coloured dot support.

Modified: pypy/dist/pypy/jit/hintannotator/bookkeeper.py
==============================================================================
--- pypy/dist/pypy/jit/hintannotator/bookkeeper.py	(original)
+++ pypy/dist/pypy/jit/hintannotator/bookkeeper.py	Thu Mar 22 17:23:36 2007
@@ -65,7 +65,7 @@
                 if verbose:
                     log.stub(str(graph))
                 else:
-                    log.dot()
+                    log.stub.dot()
             graph.tag = 'timeshifted'
             try:
                 etrafo = bk.annotator.exceptiontransformer

Modified: pypy/dist/pypy/tool/ansi_print.py
==============================================================================
--- pypy/dist/pypy/tool/ansi_print.py	(original)
+++ pypy/dist/pypy/tool/ansi_print.py	Thu Mar 22 17:23:36 2007
@@ -48,7 +48,7 @@
                 return
         elif 'dot' in keywords:
             if tty:
-                sys.stderr.write(".")
+                ansi_print(".", tuple(esc), file=self.file, newline=False, flush=flush)
                 AnsiLog.wrote_dot = True
                 return
         if AnsiLog.wrote_dot:



More information about the Pypy-commit mailing list