[SQL-CVS] r4155 - SQLObject/trunk/sqlobject
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: <sub...@co...> - 2010-03-22 17:36:28
|
Author: phd
Date: 2010-03-22 11:36:22 -0600 (Mon, 22 Mar 2010)
New Revision: 4155
Modified:
SQLObject/trunk/sqlobject/dbconnection.py
Log:
Remove u'...' from the repr.
Modified: SQLObject/trunk/sqlobject/dbconnection.py
===================================================================
--- SQLObject/trunk/sqlobject/dbconnection.py 2010-03-22 17:28:11 UTC (rev 4154)
+++ SQLObject/trunk/sqlobject/dbconnection.py 2010-03-22 17:36:22 UTC (rev 4155)
@@ -38,7 +38,7 @@
try:
text = text.encode(self.dbEncoding)
except UnicodeEncodeError:
- text = repr(text)[1:-1]
+ text = repr(text)[2:-1] # Remove u'...' from the repr
logfile.write(text + '\n')
class LogWriter:
|