template: drop compatibility layer
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 19 Apr 2018 13:40:57 +0200
changeset 3686 36714eeb51d1
parent 3685 bf000d1a525f
child 3687 50f1968724f0
template: drop compatibility layer Support has been dropped for 4.1 and 4.2
hgext3rd/evolve/templatekw.py
--- a/hgext3rd/evolve/templatekw.py	Thu Apr 19 13:35:31 2018 +0200
+++ b/hgext3rd/evolve/templatekw.py	Thu Apr 19 13:40:57 2018 +0200
@@ -47,13 +47,8 @@
         """List of strings. Evolution troubles affecting the changeset
         (zero or more of "unstable", "divergent" or "bumped")."""
         ctx = args['ctx']
-        try:
-            # specify plural= explicitly to trigger TypeError on hg < 4.2
-            return templatekw.showlist('trouble', ctx.instabilities(), args,
-                                       plural='troubles')
-        except TypeError:
-            return templatekw.showlist('trouble', ctx.instabilities(), plural='troubles',
-                                       **args)
+        return templatekw.showlist('trouble', ctx.instabilities(), args,
+                                   plural='troubles')
 
 if util.safehasattr(templatekw, 'showpredecessors'):
     templatekw.keywords["precursors"] = templatekw.showpredecessors