comparison mercurial/help.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 964c6be36590
children 0cec8ad579d4
comparison
equal deleted inserted replaced
32330:2959c3e986e0 32331:bd872f64a8ba
32 ) 32 )
33 from .hgweb import ( 33 from .hgweb import (
34 webcommands, 34 webcommands,
35 ) 35 )
36 36
37 _exclkeywords = set([ 37 _exclkeywords = {
38 "(ADVANCED)", 38 "(ADVANCED)",
39 "(DEPRECATED)", 39 "(DEPRECATED)",
40 "(EXPERIMENTAL)", 40 "(EXPERIMENTAL)",
41 # i18n: "(ADVANCED)" is a keyword, must be translated consistently 41 # i18n: "(ADVANCED)" is a keyword, must be translated consistently
42 _("(ADVANCED)"), 42 _("(ADVANCED)"),
43 # i18n: "(DEPRECATED)" is a keyword, must be translated consistently 43 # i18n: "(DEPRECATED)" is a keyword, must be translated consistently
44 _("(DEPRECATED)"), 44 _("(DEPRECATED)"),
45 # i18n: "(EXPERIMENTAL)" is a keyword, must be translated consistently 45 # i18n: "(EXPERIMENTAL)" is a keyword, must be translated consistently
46 _("(EXPERIMENTAL)"), 46 _("(EXPERIMENTAL)"),
47 ]) 47 }
48 48
49 def listexts(header, exts, indent=1, showdeprecated=False): 49 def listexts(header, exts, indent=1, showdeprecated=False):
50 '''return a text listing of the given extensions''' 50 '''return a text listing of the given extensions'''
51 rst = [] 51 rst = []
52 if exts: 52 if exts: