hgdemandimport/demandimportpy3.py
changeset 49049 b8eb29ab3906
parent 49037 642e31cb55f0
child 49599 48e38b179106
child 49714 87516dd774d0
--- a/hgdemandimport/demandimportpy3.py	Tue Mar 08 19:08:35 2022 -0800
+++ b/hgdemandimport/demandimportpy3.py	Tue Mar 08 19:09:35 2022 -0800
@@ -33,12 +33,6 @@
 
 _deactivated = False
 
-# Python 3.5's LazyLoader doesn't work for some reason.
-# https://bugs.python.org/issue26186 is a known issue with extension
-# importing. But it appears to not have a meaningful effect with
-# Mercurial.
-_supported = sys.version_info[0:2] >= (3, 6)
-
 
 class _lazyloaderex(importlib.util.LazyLoader):
     """This is a LazyLoader except it also follows the _deactivated global and
@@ -144,9 +138,6 @@
 
 
 def enable():
-    if not _supported:
-        return
-
     new_finders = []
     for finder in sys.meta_path:
         new_finders.append(