From 0c31d3bd1f717119e45cd88b37a9d537266cb1eb Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Sat, 13 Oct 2007 21:37:49 +0000 Subject: [PATCH] Snipped another generator expression. --- lib/sqlalchemy/databases/postgres.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- 2.47.3