windows: drop detection of Windows 95/98/ME
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 17 Dec 2019 21:12:17 -0500
changeset 43922 70abcb614a5c
parent 43921 b78795c2a294
child 43923 9a3ac902d597
windows: drop detection of Windows 95/98/ME Support was removed in python 2.6. Differential Revision: https://phab.mercurial-scm.org/D7688
mercurial/windows.py
--- a/mercurial/windows.py	Tue Dec 17 14:04:02 2019 -0500
+++ b/mercurial/windows.py	Tue Dec 17 21:12:17 2019 -0500
@@ -228,16 +228,8 @@
             raise IOError(errno.EPIPE, 'Broken pipe')
 
 
-def _is_win_9x():
-    '''return true if run on windows 95, 98 or me.'''
-    try:
-        return sys.getwindowsversion()[3] == 1
-    except AttributeError:
-        return b'command' in encoding.environ.get(b'comspec', b'')
-
-
 def openhardlinks():
-    return not _is_win_9x()
+    return True
 
 
 def parsepatchoutput(output_line):