Nancy Pelosi announced she will not seek re-election as Democratic leader.