Portugal’s prime minister said on Wednesday he is ready to renew his Socialist party’s alliance with two far-left parties following a general election in October.