templatekw: use literal set syntax
authorAnton Shestakov <av6@dwimlabs.net>
Tue, 07 Jan 2020 16:05:44 +0700
changeset 5059 98c15ea18302
parent 5058 c95e68e8a219
child 5060 eded640fc61d
templatekw: use literal set syntax According to https://www.mercurial-scm.org/wiki/SupportedPythonVersions, we don't support Python 2.6 since 4.3.
hgext3rd/evolve/templatekw.py
--- 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',