Mercurial > public > mercurial-scm > hg-stable
diff tests/check-perf-code.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 | d8a2c536dd96 |
children | eb8a8af4cbd0 |
line wrap: on
line diff
--- a/tests/check-perf-code.py Sat May 06 04:51:25 2017 +0530 +++ b/tests/check-perf-code.py Fri Feb 10 16:56:29 2017 -0800 @@ -26,7 +26,7 @@ replacement = [('.py', ''), ('.c', ''), # trim suffix ('mercurial%s' % (os.sep), ''), # trim "mercurial/" path ] - ignored = set(['__init__']) + ignored = {'__init__'} modules = {} # convert from file name to module name, and count # of appearances