summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/orm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/orm')
-rw-r--r--lib/sqlalchemy/orm/context.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sqlalchemy/orm/context.py b/lib/sqlalchemy/orm/context.py
index d9e334d45..c24e04aa5 100644
--- a/lib/sqlalchemy/orm/context.py
+++ b/lib/sqlalchemy/orm/context.py
@@ -533,8 +533,7 @@ class ORMSelectCompileState(ORMCompileState, SelectState):
# and _setup_for_generate into three or four logical sections
self._setup_for_generate()
- if compiler is not None:
- SelectState.__init__(self, self.statement, compiler, **kw)
+ SelectState.__init__(self, self.statement, compiler, **kw)
return self