From: Jason Kirtland Date: Sat, 13 Oct 2007 21:37:49 +0000 (+0000) Subject: Snipped another generator expression. X-Git-Tag: rel_0_4_0~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0c31d3bd1f717119e45cd88b37a9d537266cb1eb;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Snipped another generator expression. --- diff --git a/lib/sqlalchemy/databases/postgres.py b/lib/sqlalchemy/databases/postgres.py index 80a5c1f401..d894b1f2cf 100644 --- a/lib/sqlalchemy/databases/postgres.py +++ b/lib/sqlalchemy/databases/postgres.py @@ -700,7 +700,8 @@ class PGSchemaGenerator(compiler.SchemaGenerator): if whereclause is not None: compiler = self._compile(whereclause, None) # this might belong to the compiler class - inlined_clause = str(compiler) % dict((key,bind.value) for key,bind in compiler.binds.iteritems()) + inlined_clause = str(compiler) % dict( + [(key,bind.value) for key,bind in compiler.binds.iteritems()]) self.append(" WHERE " + inlined_clause) self.execute()