comparison mercurial/posix.py @ 34647:dacfcdd8b94e

codemod: use pycompat.isdarwin This is done by: sed -i "s/pycompat\.sysplatform == 'darwin'/pycompat.isdarwin/" **/*.py Plus a manual change to `sslutil.py` which involves indentation change that cannot be done by `sed`. Differential Revision: https://phab.mercurial-scm.org/D1035
author Jun Wu <quark@fb.com>
date Thu, 12 Oct 2017 23:34:34 -0700
parents ab687e06fe02
children beede158ea8a
comparison
equal deleted inserted replaced
34646:238abf65a8ad 34647:dacfcdd8b94e
330 # what normcase does to ASCII strings 330 # what normcase does to ASCII strings
331 normcasespec = encoding.normcasespecs.lower 331 normcasespec = encoding.normcasespecs.lower
332 # fallback normcase function for non-ASCII strings 332 # fallback normcase function for non-ASCII strings
333 normcasefallback = normcase 333 normcasefallback = normcase
334 334
335 if pycompat.sysplatform == 'darwin': 335 if pycompat.isdarwin:
336 336
337 def normcase(path): 337 def normcase(path):
338 ''' 338 '''
339 Normalize a filename for OS X-compatible comparison: 339 Normalize a filename for OS X-compatible comparison:
340 - escape-encode invalid characters 340 - escape-encode invalid characters