summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authorJason Kirtland <jek@discorporate.us>2007-11-13 19:29:16 +0000
committerJason Kirtland <jek@discorporate.us>2007-11-13 19:29:16 +0000
commitfb3664389384e7ac24dba8a3f065346449f92aa2 (patch)
tree67128ace6f73b62bce5686febb6a2d886a11901d /lib/sqlalchemy
parente31665b82f30d96286fac78605b73c2a08d5cdf8 (diff)
downloadsqlalchemy-fb3664389384e7ac24dba8a3f065346449f92aa2.tar.gz
More column type __repr__ corrections.
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/databases/mysql.py2
-rw-r--r--lib/sqlalchemy/types.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py
index eb8dede05..eaba40a6d 100644
--- a/lib/sqlalchemy/databases/mysql.py
+++ b/lib/sqlalchemy/databases/mysql.py
@@ -283,7 +283,7 @@ class _StringType(object):
params[attr] = val
return "%s(%s)" % (self.__class__.__name__,
- ','.join(['%s=%s' % (k, params[k]) for k in params]))
+ ', '.join(['%s=%r' % (k, params[k]) for k in params]))
class MSNumeric(sqltypes.Numeric, _NumericType):
diff --git a/lib/sqlalchemy/types.py b/lib/sqlalchemy/types.py
index f75f5bcb6..48a6af030 100644
--- a/lib/sqlalchemy/types.py
+++ b/lib/sqlalchemy/types.py
@@ -142,7 +142,7 @@ class AbstractType(object):
def __repr__(self):
return "%s(%s)" % (
self.__class__.__name__,
- ",".join(["%s=%s" % (k, getattr(self, k, None))
+ ", ".join(["%s=%r" % (k, getattr(self, k, None))
for k in inspect.getargspec(self.__init__)[0][1:]]))
class TypeEngine(AbstractType):