legacy: drop compat layer for "command"
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 18 Aug 2018 01:00:08 +0200
changeset 3970 005a10537627
parent 3969 e854bf1e703f
child 3971 9f8b99b3d9b5
legacy: drop compat layer for "command"
hgext3rd/evolve/legacy.py
--- a/hgext3rd/evolve/legacy.py	Sat Aug 18 00:59:44 2018 +0200
+++ b/hgext3rd/evolve/legacy.py	Sat Aug 18 01:00:08 2018 +0200
@@ -36,11 +36,7 @@
     # compat with hg < 4.6
     from mercurial.util import makedate
 
-if util.safehasattr(registrar, 'command'):
-    commandfunc = registrar.command
-else: # compat with hg < 4.3
-    from mercurial import cmdutil
-    commandfunc = cmdutil.command
+commandfunc = registrar.command
 
 #####################################################################
 ### Older format management                                       ###