Skip to content

Commit d7ba5bd

Browse files
committed
test: 🚨 Address pylint complaint
1 parent 2686c89 commit d7ba5bd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

examples/03-remote-system/diff.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ class AlphabeticalOrderDiff(Diff):
99
@classmethod
1010
def order_children_default(cls, children):
1111
"""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
12+
# it's possible to access additional information about the object
13+
# like child.action can be "update", "create" or "delete"
14+
yield from sorted(children.values())

0 commit comments

Comments
 (0)