parameters: (name)
return_statement: return None
docstring: Returns a gid, given a group name.
docstring_summary: Returns a gid, given a group name.
docstring_tokens: Returns a gid given a group name .
function: def _get_gid(name):
      """Returns a gid, given a group name."""
      if getgrnam is None or name is None:
          return None
      try:
          result = getgrnam(name)
      except KeyError:
          result = None
      if result is not None:
          return result[2]
      return None
function_tokens: def _get_gid ( name ) : if getgrnam is None or name is None : return None try : result = getgrnam ( name ) except KeyError : result = None if result is not None : return result [ 2 ] return None