templatekw: use literal set syntax
According to https://www.mercurial-scm.org/wiki/SupportedPythonVersions, we
don't support Python 2.6 since 4.3.
--- a/hgext3rd/evolve/templatekw.py Sat Jan 04 21:07:38 2020 +0700
+++ b/hgext3rd/evolve/templatekw.py Tue Jan 07 16:05:44 2020 +0700
@@ -24,7 +24,7 @@
### template keywords
if util.safehasattr(templatekw, 'compatlist'):
- @eh.templatekeyword(b'instabilities', requires=set([b'ctx', b'templ']))
+ @eh.templatekeyword(b'instabilities', requires={b'ctx', b'templ'})
def showinstabilities(context, mapping):
"""List of strings. Evolution instabilities affecting the changeset
(zero or more of "orphan", "content-divergent" or "phase-divergent")."""
@@ -33,7 +33,7 @@
ctx.instabilities(),
plural=b'instabilities')
- @eh.templatekeyword(b'troubles', requires=set([b'ctx', b'templ']))
+ @eh.templatekeyword(b'troubles', requires={b'ctx', b'templ'})
def showtroubles(context, mapping): # legacy name for instabilities
ctx = context.resource(mapping, b'ctx')
return templatekw.compatlist(context, mapping, b'trouble',