changeset 5059:98c15ea18302

templatekw: use literal set syntax According to https://www.mercurial-scm.org/wiki/SupportedPythonVersions, we don't support Python 2.6 since 4.3.
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 07 Jan 2020 16:05:44 +0700
parents c95e68e8a219
children eded640fc61d
files hgext3rd/evolve/templatekw.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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',