Skip to content
Snippets Groups Projects
Commit b8eb29ab3906 authored by Gregory Szorc's avatar Gregory Szorc
Browse files

hgdemandimport: delete check for Python 3.5

We dropped support for Python 3.5. So we no longer need to do this.

Differential Revision: https://phab.mercurial-scm.org/D12362
parent edab75a4c1da
1 merge request!168branching: merge default into stable
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment