changeset 3686:36714eeb51d1

template: drop compatibility layer Support has been dropped for 4.1 and 4.2
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 19 Apr 2018 13:40:57 +0200
parents bf000d1a525f
children 50f1968724f0
files hgext3rd/evolve/templatekw.py
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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