summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/orm/strategies.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/sqlalchemy/orm/strategies.py b/lib/sqlalchemy/orm/strategies.py
index 62a94093f..9197c2397 100644
--- a/lib/sqlalchemy/orm/strategies.py
+++ b/lib/sqlalchemy/orm/strategies.py
@@ -736,8 +736,7 @@ class SubqueryLoader(AbstractRelationshipLoader):
interfaces._reduce_path(subq_path):
return
- subq_mapper, leftmost_mapper, leftmost_prop, \
- leftmost_cols, remote_cols, leftmost_attr = \
+ subq_mapper, leftmost_mapper, leftmost_attr = \
self._get_leftmost(subq_path)
orig_query = context.attributes.get(
@@ -794,8 +793,7 @@ class SubqueryLoader(AbstractRelationshipLoader):
leftmost_mapper._columntoproperty[c].class_attribute
for c in leftmost_cols
]
- return subq_mapper, leftmost_mapper, leftmost_prop, \
- leftmost_cols, remote_cols, leftmost_attr
+ return subq_mapper, leftmost_mapper, leftmost_attr
def _generate_from_original_query(self,
orig_query, leftmost_mapper,