Mercurial > hg
comparison mercurial/windows.py @ 43922:70abcb614a5c
windows: drop detection of Windows 95/98/ME
Support was removed in python 2.6.
Differential Revision: https://phab.mercurial-scm.org/D7688
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 17 Dec 2019 21:12:17 -0500 |
parents | 1b26cb044097 |
children | 9d2b2df2c2ba |
comparison
equal
deleted
inserted
replaced
43921:b78795c2a294 | 43922:70abcb614a5c |
---|---|
226 if not win32.lasterrorwaspipeerror(inst): | 226 if not win32.lasterrorwaspipeerror(inst): |
227 raise | 227 raise |
228 raise IOError(errno.EPIPE, 'Broken pipe') | 228 raise IOError(errno.EPIPE, 'Broken pipe') |
229 | 229 |
230 | 230 |
231 def _is_win_9x(): | |
232 '''return true if run on windows 95, 98 or me.''' | |
233 try: | |
234 return sys.getwindowsversion()[3] == 1 | |
235 except AttributeError: | |
236 return b'command' in encoding.environ.get(b'comspec', b'') | |
237 | |
238 | |
239 def openhardlinks(): | 231 def openhardlinks(): |
240 return not _is_win_9x() | 232 return True |
241 | 233 |
242 | 234 |
243 def parsepatchoutput(output_line): | 235 def parsepatchoutput(output_line): |
244 """parses the output produced by patch and returns the filename""" | 236 """parses the output produced by patch and returns the filename""" |
245 pf = output_line[14:] | 237 pf = output_line[14:] |