diff contrib/perf-utils/subsetmaker.py @ 52676:f066fc0bdc7a

pyupgrade: use set literals where possible This was rewritten by the `set_literals` fixer in `pyupgrade`. I thought there was a past change around using set literals, but I can't find it now.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 06 Jan 2025 01:33:08 -0500
parents abc327f9628b
children
line wrap: on
line diff
--- a/contrib/perf-utils/subsetmaker.py	Mon Jan 06 01:27:42 2025 -0500
+++ b/contrib/perf-utils/subsetmaker.py	Mon Jan 06 01:33:08 2025 -0500
@@ -183,8 +183,8 @@
         selected.add(pick)
         undecided.remove(pick)
 
-        ancestors = set(p for p in parents(pick) if p in undecided)
-        descendants = set(c for c in children(pick) if c in undecided)
+        ancestors = {p for p in parents(pick) if p in undecided}
+        descendants = {c for c in children(pick) if c in undecided}
 
         while ancestors:
             current = ancestors.pop()