~ubuntu-branches/debian/sid/sqlalchemy/sid

« back to all changes in this revision

Viewing changes to lib/sqlalchemy/processors.py

  • Committer: Bazaar Package Importer
  • Author(s): Piotr Ożarowski
  • Date: 2011-10-18 00:02:50 UTC
  • mfrom: (1.4.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20111018000250-prowqcleosluapxg
Tags: 0.7.3-2
remove build-indep from build target's dependencies (closes: 645697)

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
        if value is None:
25
25
            return None
26
26
        else:
27
 
            return type_(*map(int, rmatch(value).groups(0)))
 
27
            m = rmatch(value)
 
28
            if m is None:
 
29
                raise ValueError("Couldn't parse %s string." % type_.__name__)
 
30
            return type_(*map(int, m.groups(0)))
28
31
    return process
29
32
 
30
33
def boolean_to_int(value):