mercurial/posix.py
changeset 41504 587a3c976892
parent 41289 593f6359681d
child 41523 3ef8bec91465
equal deleted inserted replaced
41503:210a999bd668 41504:587a3c976892
   581 
   581 
   582 def groupmembers(name):
   582 def groupmembers(name):
   583     """Return the list of members of the group with the given
   583     """Return the list of members of the group with the given
   584     name, KeyError if the group does not exist.
   584     name, KeyError if the group does not exist.
   585     """
   585     """
       
   586     name = pycompat.sysstr(name)
   586     return list(grp.getgrnam(name).gr_mem)
   587     return list(grp.getgrnam(name).gr_mem)
   587 
   588 
   588 def spawndetached(args):
   589 def spawndetached(args):
   589     return os.spawnvp(os.P_NOWAIT | getattr(os, 'P_DETACH', 0),
   590     return os.spawnvp(os.P_NOWAIT | getattr(os, 'P_DETACH', 0),
   590                       args[0], args)
   591                       args[0], args)