comparison mercurial/upgrade_utils/actions.py @ 52651: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
comparison
equal deleted inserted replaced
52650:b95b12cb31e2 52651:f066fc0bdc7a
784 b're-delta-multibase' in upgrade_actions_names 784 b're-delta-multibase' in upgrade_actions_names
785 ) 785 )
786 786
787 @property 787 @property
788 def upgrade_actions_names(self): 788 def upgrade_actions_names(self):
789 return set([a.name for a in self.upgrade_actions]) 789 return {a.name for a in self.upgrade_actions}
790 790
791 @property 791 @property
792 def requirements_only(self): 792 def requirements_only(self):
793 # does the operation only touches repository requirement 793 # does the operation only touches repository requirement
794 return ( 794 return (