From 819ec8e13f03297a7af2fb5d7db5f742a5a1357d Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 7 Aug 2012 15:23:11 -0400 Subject: - add new C extension "utils", so far includes distill_params - repair test_processors which wasn't hitting the python functions - add another suite to test_processors that does distill_params --- lib/sqlalchemy/processors.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/sqlalchemy/processors.py') diff --git a/lib/sqlalchemy/processors.py b/lib/sqlalchemy/processors.py index 240263feb..ddca43a6c 100644 --- a/lib/sqlalchemy/processors.py +++ b/lib/sqlalchemy/processors.py @@ -29,10 +29,11 @@ def str_to_datetime_processor_factory(regexp, type_): m = rmatch(value) except TypeError: raise ValueError("Couldn't parse %s string '%r' " - "- value is not a string." % (type_.__name__ , value)) + "- value is not a string." % + (type_.__name__, value)) if m is None: raise ValueError("Couldn't parse %s string: " - "'%s'" % (type_.__name__ , value)) + "'%s'" % (type_.__name__, value)) if has_named_groups: groups = m.groupdict(0) return type_(**dict(zip(groups.iterkeys(), -- cgit v1.2.1