mercurial/pycompat.py
changeset 40527 1b49b84d5ed5
parent 39818 24e493ec2229
child 43019 2cc453284d5c
equal deleted inserted replaced
40526:1419f780207c 40527:1b49b84d5ed5
   401     rawinput = raw_input
   401     rawinput = raw_input
   402     getargspec = inspect.getargspec
   402     getargspec = inspect.getargspec
   403 
   403 
   404 isjython = sysplatform.startswith(b'java')
   404 isjython = sysplatform.startswith(b'java')
   405 
   405 
   406 isdarwin = sysplatform == b'darwin'
   406 isdarwin = sysplatform.startswith(b'darwin')
       
   407 islinux = sysplatform.startswith(b'linux')
   407 isposix = osname == b'posix'
   408 isposix = osname == b'posix'
   408 iswindows = osname == b'nt'
   409 iswindows = osname == b'nt'
   409 
   410 
   410 def getoptb(args, shortlist, namelist):
   411 def getoptb(args, shortlist, namelist):
   411     return _getoptbwrapper(getopt.getopt, args, shortlist, namelist)
   412     return _getoptbwrapper(getopt.getopt, args, shortlist, namelist)