Mercurial > public > mercurial-scm > hg-stable
diff mercurial/fancyopts.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 | c6ce11f2ee50 |
children | db8531c45953 |
line wrap: on
line diff
--- a/mercurial/fancyopts.py Sat May 06 04:51:25 2017 +0530 +++ b/mercurial/fancyopts.py Fri Feb 10 16:56:29 2017 -0800 @@ -14,7 +14,7 @@ ) # Set of flags to not apply boolean negation logic on -nevernegate = set([ +nevernegate = { # avoid --no-noninteractive 'noninteractive', # These two flags are special because they cause hg to do one @@ -22,7 +22,7 @@ # like aliases anyway. 'help', 'version', - ]) +} def gnugetopt(args, options, longoptions): """Parse options mostly like getopt.gnu_getopt.