Patchwork D7688: windows: drop detection of Windows 95/98/ME

login
register
mail settings
Submitter phabricator
Date Dec. 18, 2019, 3:49 a.m.
Message ID <differential-rev-PHID-DREV-aujta2lldjcprhwf4cps-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/43944/
State Superseded
Headers show

Comments

phabricator - Dec. 18, 2019, 3:49 a.m.
mharbison72 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Support was removed in python 2.6.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D7688

AFFECTED FILES
  mercurial/windows.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/windows.py b/mercurial/windows.py
--- a/mercurial/windows.py
+++ b/mercurial/windows.py
@@ -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):