Mercurial > public > mercurial-scm > hg-stable
comparison tests/test-duplicateoptions.py @ 32331: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 | d83ca854fa21 |
children | 5b2f331d0a33 |
comparison
equal
deleted
inserted
replaced
32330:2959c3e986e0 | 32331:bd872f64a8ba |
---|---|
4 commands, | 4 commands, |
5 extensions, | 5 extensions, |
6 ui as uimod, | 6 ui as uimod, |
7 ) | 7 ) |
8 | 8 |
9 ignore = set(['highlight', 'win32text', 'factotum']) | 9 ignore = {'highlight', 'win32text', 'factotum'} |
10 | 10 |
11 if os.name != 'nt': | 11 if os.name != 'nt': |
12 ignore.add('win32mbcs') | 12 ignore.add('win32mbcs') |
13 | 13 |
14 disabled = [ext for ext in extensions.disabled().keys() if ext not in ignore] | 14 disabled = [ext for ext in extensions.disabled().keys() if ext not in ignore] |