[SQL-CVS] r4543 - SQLObject/branches/1.3/sqlobject
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: <sub...@co...> - 2012-06-22 20:43:37
|
Author: phd
Date: Fri Jun 22 14:43:29 2012
New Revision: 4543
Log:
Merged revision 4542 from branch 1.2: minor optimization.
Modified:
SQLObject/branches/1.3/sqlobject/converters.py
Modified: SQLObject/branches/1.3/sqlobject/converters.py
==============================================================================
--- SQLObject/branches/1.3/sqlobject/converters.py Fri Jun 22 14:42:01 2012 (r4542)
+++ SQLObject/branches/1.3/sqlobject/converters.py Fri Jun 22 14:43:29 2012 (r4543)
@@ -216,7 +216,7 @@
return "'%s'" % s
def unquote_str(s):
- if s.upper().startswith("E'") and s.endswith("'"):
+ if s[:2].upper().startswith("E'") and s.endswith("'"):
return s[2:-1]
elif s.startswith("'") and s.endswith("'"):
return s[1:-1]
|