# HG changeset patch # User Anton Shestakov # Date 1578387944 -25200 # Node ID 98c15ea18302ca00abc81f0993a1afa3815f1d85 # Parent c95e68e8a2192e197399f8c136ef5de3a9766d9e templatekw: use literal set syntax According to https://www.mercurial-scm.org/wiki/SupportedPythonVersions, we don't support Python 2.6 since 4.3. diff -r c95e68e8a219 -r 98c15ea18302 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',