[wpdev-commits] xmlscripts/web console.py,1.3,1.4
Brought to you by:
rip,
thiagocorrea
|
From: <dr...@us...> - 2004-01-06 12:55:48
|
Update of /cvsroot/wpdev/xmlscripts/web In directory sc8-pr-cvs1:/tmp/cvs-serv19004 Modified Files: console.py Log Message: Tweak that removes some of the bash color codes... cleaner output. Index: console.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/web/console.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** console.py 8 Oct 2003 01:55:36 -0000 1.3 --- console.py 6 Jan 2004 12:55:44 -0000 1.4 *************** *** 4,12 **** import web.sessions import web.template - import cgi - import sys import wolfpack.console from wolfpack.consts import * ! import re form = cgi.FieldStorage() --- 4,11 ---- import web.sessions import web.template import wolfpack.console from wolfpack.consts import * ! import sys, cgi, re, string ! form = cgi.FieldStorage() *************** *** 47,50 **** --- 46,54 ---- line = line[:i-1] + line[i+1:] i = line.find( "\b" ) + + line = string.replace( line, "", "" ) + line = string.replace( line, "[1;37m", "" ) + line = string.replace( line, "[1;32m", "" ) + line = string.replace( line, "[0m", "" ) content += line + "\n" |