Mercurial > public > mercurial-scm > hg
comparison mercurial/statprof.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 | 2912b06905dc |
children | c5853c9a6545 |
comparison
equal
deleted
inserted
replaced
32290:2959c3e986e0 | 32291:bd872f64a8ba |
---|---|
124 defaultdict = collections.defaultdict | 124 defaultdict = collections.defaultdict |
125 contextmanager = contextlib.contextmanager | 125 contextmanager = contextlib.contextmanager |
126 | 126 |
127 __all__ = ['start', 'stop', 'reset', 'display', 'profile'] | 127 __all__ = ['start', 'stop', 'reset', 'display', 'profile'] |
128 | 128 |
129 skips = set(["util.py:check", "extensions.py:closure", | 129 skips = {"util.py:check", "extensions.py:closure", |
130 "color.py:colorcmd", "dispatch.py:checkargs", | 130 "color.py:colorcmd", "dispatch.py:checkargs", |
131 "dispatch.py:<lambda>", "dispatch.py:_runcatch", | 131 "dispatch.py:<lambda>", "dispatch.py:_runcatch", |
132 "dispatch.py:_dispatch", "dispatch.py:_runcommand", | 132 "dispatch.py:_dispatch", "dispatch.py:_runcommand", |
133 "pager.py:pagecmd", "dispatch.py:run", | 133 "pager.py:pagecmd", "dispatch.py:run", |
134 "dispatch.py:dispatch", "dispatch.py:runcommand", | 134 "dispatch.py:dispatch", "dispatch.py:runcommand", |
135 "hg.py:<module>", "evolve.py:warnobserrors", | 135 "hg.py:<module>", "evolve.py:warnobserrors", |
136 ]) | 136 } |
137 | 137 |
138 ########################################################################### | 138 ########################################################################### |
139 ## Utils | 139 ## Utils |
140 | 140 |
141 def clock(): | 141 def clock(): |