##// END OF EJS Templates
py3: make sure return value of posix.groupname() is bytes...
Pulkit Goyal -
r41993:faa04f45 default
parent child Browse files
Show More
@@ -575,9 +575,9 def groupname(gid=None):
575 if gid is None:
575 if gid is None:
576 gid = os.getgid()
576 gid = os.getgid()
577 try:
577 try:
578 return grp.getgrgid(gid)[0]
578 return pycompat.fsencode(grp.getgrgid(gid)[0])
579 except KeyError:
579 except KeyError:
580 return str(gid)
580 return pycompat.bytestr(gid)
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
General Comments 0
You need to be logged in to leave comments. Login now