def get_username_from_uid(uid):
 if isinstance(uid, int):
  return pwd.getpwuid(uid).pw_name
 return uid

def get_username_from_uid ( uid ) : if isinstance ( uid , int ) : return pwd . getpwuid ( uid ) . pw_name return uid
return the username of a given uid .