comparison mercurial/pycompat.py @ 34644:c0a6c19690ff

pycompat: define operating system constants As suggested by Ryan in D1019, it's cleaner if we use defined constants instead of `osname == 'nt'` everywhere. Differential Revision: https://phab.mercurial-scm.org/D1033
author Jun Wu <quark@fb.com>
date Thu, 12 Oct 2017 19:20:04 -0700
parents a568a46751b6
children 5b569d512fbd
comparison
equal deleted inserted replaced
34643:f42dec9c976e 34644:c0a6c19690ff
314 stringio = cStringIO.StringIO 314 stringio = cStringIO.StringIO
315 maplist = map 315 maplist = map
316 rawinput = raw_input 316 rawinput = raw_input
317 317
318 isjython = sysplatform.startswith('java') 318 isjython = sysplatform.startswith('java')
319
320 isdarwin = sysplatform == 'darwin'
321 isposix = osname == 'posix'
322 iswindows = osname == 'nt'