def _pwdGetByName(username):
 if (pwd is None):
  return None
 return pwd.getpwnam(username)

def _pwdGetByName ( username ) : if ( pwd is None ) : return None return pwd . getpwnam ( username )
look up a user in the /etc/passwd database using the pwd module .