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

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
returns an uid .