We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2686c89 commit d7ba5bdCopy full SHA for d7ba5bd
examples/03-remote-system/diff.py
@@ -9,8 +9,6 @@ class AlphabeticalOrderDiff(Diff):
9
@classmethod
10
def order_children_default(cls, children):
11
"""Simple diff to return all children in alphabetical order."""
12
- for child in sorted(children.values()):
13
- # it's possible to access additional information about the object
14
- # like child.action can be "update", "create" or "delete"
15
-
16
- yield child
+ # it's possible to access additional information about the object
+ # like child.action can be "update", "create" or "delete"
+ yield from sorted(children.values())
0 commit comments