Mercurial > public > mercurial-scm > hg-stable
diff mercurial/upgrade_utils/actions.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 | 4cb75772818d |
children | 42f78c859dd1 |
line wrap: on
line diff
--- a/mercurial/upgrade_utils/actions.py Mon Jan 06 01:27:42 2025 -0500 +++ b/mercurial/upgrade_utils/actions.py Mon Jan 06 01:33:08 2025 -0500 @@ -786,7 +786,7 @@ @property def upgrade_actions_names(self): - return set([a.name for a in self.upgrade_actions]) + return {a.name for a in self.upgrade_actions} @property def requirements_only(self):