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

login
register
mail settings
Submitter phabricator
Date Dec. 18, 2019, 6:46 a.m.
Message ID <153e6307342a9f49726d575b8b7d2d86@localhost.localdomain>
Download mbox | patch
Permalink /patch/43959/
State Not Applicable
Headers show

Comments

phabricator - Dec. 18, 2019, 6:46 a.m.
Closed by commit rHG70abcb614a5c: windows: drop detection of Windows 95/98/ME (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7688?vs=18833&id=18848

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7688/new/

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

AFFECTED FILES
  mercurial/windows.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers, pulkit
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):