# HG changeset patch # User Gregory Szorc # Date 2022-03-09 03:10:19 # Node ID 9ac1a4507bb3baa3ddfcf747225ba05186c820d6 # Parent b8eb29ab3906f542fb56e16ffdeb2b099a389e4d pycompat: remove check for Python >= 3.6 We dropped support for Python 3.5 so this is always true. Differential Revision: https://phab.mercurial-scm.org/D12363 diff --git a/mercurial/pycompat.py b/mercurial/pycompat.py --- a/mercurial/pycompat.py +++ b/mercurial/pycompat.py @@ -86,7 +86,7 @@ def rapply(f, xs): return _rapply(f, xs) -if os.name == r'nt' and sys.version_info >= (3, 6): +if os.name == r'nt': # MBCS (or ANSI) filesystem encoding must be used as before. # Otherwise non-ASCII filenames in existing repositories would be # corrupted. @@ -415,7 +415,6 @@ if sys.version_info[0:2] < (3, 6): return json.loads(s, *args, **kwargs) - else: json_loads = json.loads