diff rhodecode/lib/timerproxy.py @ 1360:1f47adeb67c2 beta

Bumped sqlalchemy version to 0.7, replaced timerproxy with new event system for sqlalchemy. TimerProxy is now longer valid profilling method for sqlalchemy
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 04 Jun 2011 20:34:30 +0200
parents c1516b35f91d
children bf263968da47
line wrap: on
line diff
--- a/rhodecode/lib/timerproxy.py	Sat Jun 04 01:16:39 2011 +0200
+++ b/rhodecode/lib/timerproxy.py	Sat Jun 04 20:34:30 2011 +0200
@@ -10,7 +10,7 @@
     COLOR_SEQ = "\033[1;%dm"
     COLOR_SQL = YELLOW
     normal = '\x1b[0m'
-    return COLOR_SEQ % COLOR_SQL + sql + normal
+    return ''.join([COLOR_SEQ % COLOR_SQL, sql, normal])
 
 
 class TimerProxy(ConnectionProxy):