summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/sqlalchemy/orm/mapper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/mapper.py b/lib/sqlalchemy/orm/mapper.py
index 31e7e9141..a4587ec50 100644
--- a/lib/sqlalchemy/orm/mapper.py
+++ b/lib/sqlalchemy/orm/mapper.py
@@ -2131,7 +2131,8 @@ class Mapper(_InspectionAttr):
while stack:
item = stack.popleft()
descendants.append(item)
- stack.extend(sorted(item._inheriting_mappers, key=lambda m: m.class_.__name__))
+ stack.extend(sorted(item._inheriting_mappers,
+ key=lambda m: m.class_.__name__))
return util.WeakSequence(descendants)
def polymorphic_iterator(self):