On his show Wednesday night, The Daily Show host Jon Stewart ripped into Republicans for changing their stance on immigration based purely on a cynical political calculation.

Stewart observed that Republicans had fought over who had the most hardline policy on immigration before the 2012 election. During the presidential primary race, the GOP candidates accused each other of being too accepting of "amnesty" for undocumented immigrations.

"They talk about amnesty like its some deviant sexual practice," Stewart remarked, before playing a clip of Arizona Gov. Jan Brewer talking about "backdoor amnesty."

But many Republicans recently softened their stance on immigration. As Sen. John McCain (R-AZ) explained, "look at the last election."

"Not sure that's the reason you are supposed to say out loud," Stewart joked.

Watch video below: