Mercurial > kallithea
diff rhodecode/lib/timerproxy.py @ 1307:c1516b35f91d beta
pep8ify
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 03 May 2011 16:54:43 +0200 |
parents | 1fb97030b9b7 |
children | 1f47adeb67c2 |
line wrap: on
line diff
--- a/rhodecode/lib/timerproxy.py Tue May 03 16:20:06 2011 +0200 +++ b/rhodecode/lib/timerproxy.py Tue May 03 16:54:43 2011 +0200 @@ -5,12 +5,14 @@ BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE = xrange(30, 38) + def color_sql(sql): COLOR_SEQ = "\033[1;%dm" COLOR_SQL = YELLOW normal = '\x1b[0m' return COLOR_SEQ % COLOR_SQL + sql + normal + class TimerProxy(ConnectionProxy): def __init__(self):