]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Snipped another generator expression.
authorJason Kirtland <jek@discorporate.us>
Sat, 13 Oct 2007 21:37:49 +0000 (21:37 +0000)
committerJason Kirtland <jek@discorporate.us>
Sat, 13 Oct 2007 21:37:49 +0000 (21:37 +0000)
lib/sqlalchemy/databases/postgres.py

index 80a5c1f401ecfb3d76ffdad9d2df8c023f918640..d894b1f2cfec1c64230c6c9c34f850b26bca6fc4 100644 (file)
@@ -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()