Mercurial > public > mercurial-scm > hg
comparison mercurial/dispatch.py @ 32291:bd872f64a8ba
cleanup: use set literals
We no longer support Python 2.6, so we can now use set literals.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 10 Feb 2017 16:56:29 -0800 |
parents | 89153b0d4881 |
children | 9c023179e8d0 |
comparison
equal
deleted
inserted
replaced
32290:2959c3e986e0 | 32291:bd872f64a8ba |
---|---|
747 | 747 |
748 # Side-effect of accessing is debugcommands module is guaranteed to be | 748 # Side-effect of accessing is debugcommands module is guaranteed to be |
749 # imported and commands.table is populated. | 749 # imported and commands.table is populated. |
750 debugcommands.command | 750 debugcommands.command |
751 | 751 |
752 uis = set([ui, lui]) | 752 uis = {ui, lui} |
753 | 753 |
754 if req.repo: | 754 if req.repo: |
755 uis.add(req.repo.ui) | 755 uis.add(req.repo.ui) |
756 | 756 |
757 if '--profile' in args: | 757 if '--profile' in args: |