changeset 48959:9ac1a4507bb3

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
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 08 Mar 2022 19:10:19 -0800
parents b8eb29ab3906
children c3a48dd506da
files mercurial/pycompat.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/pycompat.py	Tue Mar 08 19:09:35 2022 -0800
+++ b/mercurial/pycompat.py	Tue Mar 08 19:10:19 2022 -0800
@@ -86,7 +86,7 @@
     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 @@
 
         return json.loads(s, *args, **kwargs)
 
-
 else:
     json_loads = json.loads