def _get_gid(name):
if getgrnam is None or name is None:<EOL><INDENT>return None<EOL><DEDENT>try:<EOL><INDENT>result = getgrnam(name)<EOL><DEDENT>except KeyError:<EOL><INDENT>result = None<EOL><DEDENT>if result is not None:<EOL><INDENT>return result[<NUM_LIT:2>]<EOL><DEDENT>return None<EOL>
Returns a gid, given a group name.