Mercurial > public > mercurial-scm > hg
comparison mercurial/extensions.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 | b98ee1a808bd |
children | b88d879e468a |
comparison
equal
deleted
inserted
replaced
32290:2959c3e986e0 | 32291:bd872f64a8ba |
---|---|
26 | 26 |
27 _extensions = {} | 27 _extensions = {} |
28 _disabledextensions = {} | 28 _disabledextensions = {} |
29 _aftercallbacks = {} | 29 _aftercallbacks = {} |
30 _order = [] | 30 _order = [] |
31 _builtin = set(['hbisect', 'bookmarks', 'parentrevspec', 'progress', 'interhg', | 31 _builtin = {'hbisect', 'bookmarks', 'parentrevspec', 'progress', 'interhg', |
32 'inotify', 'hgcia']) | 32 'inotify', 'hgcia'} |
33 | 33 |
34 def extensions(ui=None): | 34 def extensions(ui=None): |
35 if ui: | 35 if ui: |
36 def enabled(name): | 36 def enabled(name): |
37 for format in ['%s', 'hgext.%s']: | 37 for format in ['%s', 'hgext.%s']: |