# HG changeset patch # User Gregory Szorc # Date 2022-03-09 03:08:35 # Node ID edab75a4c1daeb670867e391d9880672fd7f2ef8 # Parent c194e93d1ebc963ea69182bed29787161898b5c8 hg: always import hgdemandimport The deleted if condition is always true now that we dropped Python 2 and 3.5. Differential Revision: https://phab.mercurial-scm.org/D12361 diff --git a/hg b/hg --- a/hg +++ b/hg @@ -43,10 +43,9 @@ from hgdemandimport import tracing with tracing.log('hg script'): # enable importing on demand to reduce startup time try: - if sys.version_info[0] < 3 or sys.version_info >= (3, 6): - import hgdemandimport + import hgdemandimport - hgdemandimport.enable() + hgdemandimport.enable() except ImportError: sys.stderr.write( "abort: couldn't find mercurial libraries in [%s]\n"