Mercurial > hg
changeset 48957:edab75a4c1da
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
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 08 Mar 2022 19:08:35 -0800 |
parents | c194e93d1ebc |
children | b8eb29ab3906 |
files | hg |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/hg Wed Mar 09 21:26:58 2022 -0800 +++ b/hg Tue Mar 08 19:08:35 2022 -0800 @@ -43,10 +43,9 @@ 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"