(name)
return None
Returns an uid, given a user name.
Returns an uid, given a user name.
Returns an uid given a user name .
def _get_uid(name):
    """Returns an uid, given a user name."""
    if name is None:
        return None

    try:
        from pwd import getpwnam
    except ImportError:
        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 name is None : return None try : from pwd import getpwnam except ImportError : return None try : result = getpwnam ( name ) except KeyError : result = None if result is not None : return result [ 2 ] return None