parameters: (name)
return_statement: return None
docstring: Returns an uid, given a user name.
docstring_summary: Returns an uid, given a user name.
docstring_tokens: Returns an uid given a user name .
function: def _get_uid(name):
      """Returns an uid, given a user name."""
      if getpwnam is None or name is None:
          return None
      try:
          result = getpwnam(name)
      except KeyError:
          result = None
      if result is not None:
          return result[2]
      return None
function_tokens: def _get_uid ( name ) : if getpwnam is None or name is None : return None try : result = getpwnam ( name ) except KeyError : result = None if result is not None : return result [ 2 ] return None