I capture the output streams for twill using the set_output and
set_errout function calls, and use them to filter/format the output.

But, not all of the prints are being redirected to these streams.
There's one in particular in parse.py that prints out "AT LINE:". I have
a patch attached that resolves this for me locally.

I've noticed another in that file as well that prints out '*** VAL IS',
but the "AT LINE" for me is noisier :) There may be others spread out as
well.

Robert
--- parse.py.orig       2008-03-31 17:05:57.000000000 -0400
+++ parse.py    2008-03-31 17:07:31.000000000 -0400
@@ -212,7 +212,7 @@
                 continue
 
             cmdinfo = "%s:%d" % (sourceinfo, n,)
-            print 'AT LINE:', cmdinfo
+            print>>commands.OUT, 'AT LINE:', cmdinfo
 
             cmd, args = parse_command(line, globals_dict, locals_dict)
             if cmd is None:
_______________________________________________
twill mailing list
[email protected]
http://lists.idyll.org/listinfo/twill

Reply via email to