compat: drop vfsmod compat layer
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 19 Apr 2018 15:59:39 +0200
changeset 3692 f9988919d69e
parent 3691 96cb98989d57
child 3693 105d2d2c6a2e
compat: drop vfsmod compat layer Mercurial 4.2 is no longer supported.
hgext3rd/evolve/compat.py
--- a/hgext3rd/evolve/compat.py	Thu Apr 19 14:26:03 2018 +0200
+++ b/hgext3rd/evolve/compat.py	Thu Apr 19 15:59:39 2018 +0200
@@ -18,17 +18,12 @@
     obsolete,
     revset,
     util,
+    vfs as vfsmod,
 )
 from mercurial.hgweb import hgweb_mod
 
 # hg < 4.2 compat
 try:
-    from mercurial import vfs as vfsmod
-    vfsmod.vfs
-except ImportError:
-    from mercurial import scmutil as vfsmod
-
-try:
     from mercurial import obsutil
     obsutil.closestpredecessors
 except ImportError: