def _get_uid(name):
if getpwnam is None or name is None:<EOL><INDENT>return None<EOL><DEDENT>try:<EOL><INDENT>result = getpwnam(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 an uid, given a user name.