diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-08-07 15:23:11 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-08-07 15:23:11 -0400 |
commit | 819ec8e13f03297a7af2fb5d7db5f742a5a1357d (patch) | |
tree | ce28705537cd3ad1a8125d2557a383c26cee63ac /lib/sqlalchemy/processors.py | |
parent | c13d4f613faa0590db713c4491781012163bc5f0 (diff) | |
download | sqlalchemy-819ec8e13f03297a7af2fb5d7db5f742a5a1357d.tar.gz |
- 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
Diffstat (limited to 'lib/sqlalchemy/processors.py')
-rw-r--r-- | lib/sqlalchemy/processors.py | 5 |
1 files changed, 3 insertions, 2 deletions
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(), |